]> granicus.if.org Git - postgresql/blob - src/include/tcop/tcopprot.h
Remove GUC log_statement, log_pid, log_timestamp, log_source_port.
[postgresql] / src / include / tcop / tcopprot.h
1 /*-------------------------------------------------------------------------
2  *
3  * tcopprot.h
4  *        prototypes for postgres.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.62 2004/03/15 15:56:27 momjian 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
24 #include "executor/execdesc.h"
25 #include "tcop/dest.h"
26
27
28 extern DLLIMPORT sigjmp_buf Warn_restart;
29 extern bool Warn_restart_ready;
30 extern bool InError;
31 extern CommandDest whereToSendOutput;
32 extern bool log_hostname;
33 extern DLLIMPORT const char *debug_query_string;
34 extern char *rendezvous_name;
35
36 #ifndef BOOTSTRAP_INCLUDE
37
38 extern List *pg_parse_and_rewrite(const char *query_string,
39                                          Oid *paramTypes, int numParams);
40 extern List *pg_parse_query(const char *query_string);
41 extern List *pg_analyze_and_rewrite(Node *parsetree,
42                                            Oid *paramTypes, int numParams);
43 extern List *pg_rewrite_queries(List *querytree_list);
44 extern Plan *pg_plan_query(Query *querytree);
45 extern List *pg_plan_queries(List *querytrees, bool needSnapshot);
46 #endif   /* BOOTSTRAP_INCLUDE */
47
48 extern void die(SIGNAL_ARGS);
49 extern void quickdie(SIGNAL_ARGS);
50 extern void authdie(SIGNAL_ARGS);
51 extern int      PostgresMain(int argc, char *argv[], const char *username);
52 extern void ResetUsage(void);
53 extern void ShowUsage(const char *title);
54
55 #endif   /* TCOPPROT_H */