1 /*-------------------------------------------------------------------------
4 * prototypes for postgres.c.
7 * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.63 2004/03/24 22:40:29 tgl Exp $
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
17 *-------------------------------------------------------------------------
24 #include "executor/execdesc.h"
25 #include "tcop/dest.h"
26 #include "utils/guc.h"
29 extern DLLIMPORT sigjmp_buf Warn_restart;
30 extern bool Warn_restart_ready;
32 extern CommandDest whereToSendOutput;
33 extern bool log_hostname;
34 extern DLLIMPORT const char *debug_query_string;
35 extern char *rendezvous_name;
36 extern int max_stack_depth;
38 #ifndef BOOTSTRAP_INCLUDE
40 extern List *pg_parse_and_rewrite(const char *query_string,
41 Oid *paramTypes, int numParams);
42 extern List *pg_parse_query(const char *query_string);
43 extern List *pg_analyze_and_rewrite(Node *parsetree,
44 Oid *paramTypes, int numParams);
45 extern List *pg_rewrite_queries(List *querytree_list);
46 extern Plan *pg_plan_query(Query *querytree);
47 extern List *pg_plan_queries(List *querytrees, bool needSnapshot);
49 extern bool assign_max_stack_depth(int newval, bool doit, GucSource source);
51 #endif /* BOOTSTRAP_INCLUDE */
53 extern void die(SIGNAL_ARGS);
54 extern void quickdie(SIGNAL_ARGS);
55 extern void authdie(SIGNAL_ARGS);
56 extern int PostgresMain(int argc, char *argv[], const char *username);
57 extern void ResetUsage(void);
58 extern void ShowUsage(const char *title);
60 #endif /* TCOPPROT_H */