1 /*-------------------------------------------------------------------------
4 * prototypes for postgres.c.
7 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * $Id: tcopprot.h,v 1.31 2000/06/28 03:33:28 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 *-------------------------------------------------------------------------
23 #include "executor/execdesc.h"
25 extern DLLIMPORT sigjmp_buf Warn_restart;
26 extern bool Warn_restart_ready;
28 extern bool ExitAfterAbort;
30 extern bool HostnameLookup;
31 extern bool ShowPortNumber;
33 #ifndef BOOTSTRAP_INCLUDE
35 extern List *pg_parse_and_rewrite(char *query_string,
36 Oid *typev, int nargs);
37 extern Plan *pg_plan_query(Query *querytree);
38 extern void pg_exec_query_dest(char *query_string,
40 MemoryContext parse_context);
42 #endif /* BOOTSTRAP_INCLUDE */
44 extern void handle_warn(SIGNAL_ARGS);
45 extern void die(SIGNAL_ARGS);
46 extern void CancelQuery(void);
47 extern int PostgresMain(int argc, char *argv[],
48 int real_argc, char *real_argv[]);
49 extern void ResetUsage(void);
50 extern void ShowUsage(void);
53 #endif /* TCOPPROT_H */