1 /*-------------------------------------------------------------------------
4 * prototypes for postgres.c.
7 * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: tcopprot.h,v 1.58 2003/07/22 20:29:13 momjian 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"
28 extern DLLIMPORT sigjmp_buf Warn_restart;
29 extern bool Warn_restart_ready;
31 extern CommandDest whereToSendOutput;
32 extern bool log_hostname;
33 extern bool LogSourcePort;
34 extern DLLIMPORT const char *debug_query_string;
35 extern char *rendezvous_name;
37 #ifndef BOOTSTRAP_INCLUDE
39 extern List *pg_parse_and_rewrite(const char *query_string,
40 Oid *paramTypes, int numParams);
41 extern List *pg_parse_query(const char *query_string);
42 extern List *pg_analyze_and_rewrite(Node *parsetree,
43 Oid *paramTypes, int numParams);
44 extern List *pg_rewrite_queries(List *querytree_list);
45 extern Plan *pg_plan_query(Query *querytree);
46 extern List *pg_plan_queries(List *querytrees, bool needSnapshot);
48 #endif /* BOOTSTRAP_INCLUDE */
50 extern void die(SIGNAL_ARGS);
51 extern void quickdie(SIGNAL_ARGS);
52 extern void authdie(SIGNAL_ARGS);
53 extern int PostgresMain(int argc, char *argv[], const char *username);
54 extern void ResetUsage(void);
55 extern void ShowUsage(const char *title);
57 #endif /* TCOPPROT_H */