]> granicus.if.org Git - postgresql/blob - src/include/tcop/tcopprot.h
Clean up usage-statistics display code (ShowUsage and friends). StatFp
[postgresql] / src / include / tcop / tcopprot.h
1 /*-------------------------------------------------------------------------
2  *
3  * tcopprot.h
4  *        prototypes for postgres.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: tcopprot.h,v 1.47 2001/11/10 23:51:14 tgl 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 HostnameLookup;
33 extern bool ShowPortNumber;
34
35 #ifndef BOOTSTRAP_INCLUDE
36
37 extern List *pg_parse_and_rewrite(char *query_string,
38                                          Oid *typev, int nargs);
39 extern Plan *pg_plan_query(Query *querytree);
40 extern void pg_exec_query_string(char *query_string,
41                                          CommandDest dest,
42                                          MemoryContext parse_context);
43 #endif   /* BOOTSTRAP_INCLUDE */
44
45 extern void die(SIGNAL_ARGS);
46 extern void quickdie(SIGNAL_ARGS);
47 extern void authdie(SIGNAL_ARGS);
48 extern int      PostgresMain(int argc, char *argv[], const char *username);
49 extern void ResetUsage(void);
50 extern void ShowUsage(const char *title);
51
52 #endif   /* TCOPPROT_H */