]> granicus.if.org Git - postgresql/blob - src/include/tcop/tcopprot.h
The heralded `Grand Unified Configuration scheme' (GUC)
[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.28 2000/05/31 00:28:39 petere 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 #include "parser/parse_node.h"
25
26 extern DLLIMPORT sigjmp_buf Warn_restart;
27 extern bool Warn_restart_ready;
28 extern bool InError;
29 extern bool ExitAfterAbort;
30
31 extern bool HostnameLookup;
32 extern bool ShowPortNumber;
33
34 #ifndef BOOTSTRAP_INCLUDE
35
36 extern List *pg_parse_and_rewrite(char *query_string,
37                                          Oid *typev, int nargs,
38                                          bool aclOverride);
39 extern Plan *pg_plan_query(Query *querytree);
40 extern void pg_exec_query_acl_override(char *query_string);
41 extern void pg_exec_query_dest(char *query_string,
42                                    CommandDest dest,
43                                    bool aclOverride);
44
45 #endif   /* BOOTSTRAP_INCLUDE */
46
47 extern void handle_warn(SIGNAL_ARGS);
48 extern void quickdie(SIGNAL_ARGS);
49 extern void die(SIGNAL_ARGS);
50 extern void FloatExceptionHandler(SIGNAL_ARGS);
51 extern void CancelQuery(void);
52 extern int PostgresMain(int argc, char *argv[],
53                          int real_argc, char *real_argv[]);
54 extern void ResetUsage(void);
55 extern void ShowUsage(void);
56 extern FILE * StatFp;
57
58 #endif   /* TCOPPROT_H */