tcopprot.h 1.5 KB
Newer Older
1 2
/*-------------------------------------------------------------------------
 *
3
 * tcopprot.h
4
 *	  prototypes for postgres.c.
5 6
 *
 *
7
 * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
Bruce Momjian's avatar
Add:  
Bruce Momjian committed
8
 * Portions Copyright (c) 1994, Regents of the University of California
9
 *
10
 * $Id: tcopprot.h,v 1.41 2001/06/08 21:16:48 petere Exp $
11 12
 *
 * OLD COMMENTS
13 14 15
 *	  This file was created so that other c files could get the two
 *	  function prototypes without having to include tcop.h which single
 *	  handedly includes the whole f*cking tree -- mer 5 Nov. 1991
16 17 18 19 20 21
 *
 *-------------------------------------------------------------------------
 */
#ifndef TCOPPROT_H
#define TCOPPROT_H

22 23
#include <setjmp.h>
#include "executor/execdesc.h"
24
#include "tcop/dest.h"
25

Bruce Momjian's avatar
Bruce Momjian committed
26
extern DLLIMPORT sigjmp_buf Warn_restart;
27
extern bool Warn_restart_ready;
28
extern bool InError;
29
extern CommandDest whereToSendOutput;
30

31 32 33
extern bool HostnameLookup;
extern bool ShowPortNumber;

34
#ifndef BOOTSTRAP_INCLUDE
35 36

extern List *pg_parse_and_rewrite(char *query_string,
37
					 Oid *typev, int nargs);
38
extern Plan *pg_plan_query(Query *querytree);
39
extern void pg_exec_query_string(char *query_string,
40 41
					 CommandDest dest,
					 MemoryContext parse_context);
42

43
#endif	 /* BOOTSTRAP_INCLUDE */
44

45
extern void die(SIGNAL_ARGS);
Tom Lane's avatar
Tom Lane committed
46
extern void quickdie(SIGNAL_ARGS);
47
extern int PostgresMain(int argc, char *argv[],
48
			 int real_argc, char *real_argv[], const char *username);
49 50
extern void ResetUsage(void);
extern void ShowUsage(void);
51
extern FILE *StatFp;
52

53
#endif	 /* TCOPPROT_H */