]> granicus.if.org Git - postgresql/blob - src/include/tcop/tcopprot.h
Disable elog(ERROR|FATAL) in signal handlers in
[postgresql] / src / include / tcop / tcopprot.h
1 /*-------------------------------------------------------------------------
2  *
3  * tcopprot.h
4  *        prototypes for postgres.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: tcopprot.h,v 1.36 2000/12/03 10:27:29 vadim Exp $
11  *
12  * OLD COMMENTS
13  *        This file was created so that other c files could get the two
14  *        function prototypes without having to include tcop.h which single
15  *        handedly includes the whole f*cking tree -- mer 5 Nov. 1991
16  *
17  *-------------------------------------------------------------------------
18  */
19 #ifndef TCOPPROT_H
20 #define TCOPPROT_H
21
22 #include <setjmp.h>
23 #include "executor/execdesc.h"
24
25 extern DLLIMPORT sigjmp_buf Warn_restart;
26 extern bool Warn_restart_ready;
27 extern bool InError;
28
29 extern bool HostnameLookup;
30 extern bool ShowPortNumber;
31
32 #ifndef BOOTSTRAP_INCLUDE
33
34 extern List *pg_parse_and_rewrite(char *query_string,
35                                                                   Oid *typev, int nargs);
36 extern Plan *pg_plan_query(Query *querytree);
37 extern void pg_exec_query_string(char *query_string,
38                                                                  CommandDest dest,
39                                                                  MemoryContext parse_context);
40
41 #endif   /* BOOTSTRAP_INCLUDE */
42
43 extern void handle_warn(SIGNAL_ARGS);
44 extern void die(SIGNAL_ARGS);
45 extern void CancelQuery(void);
46 extern int PostgresMain(int argc, char *argv[],
47                          int real_argc, char *real_argv[], const char *username);
48 extern void ResetUsage(void);
49 extern void ShowUsage(void);
50 extern FILE * StatFp;
51
52 #endif   /* TCOPPROT_H */