]> granicus.if.org Git - postgresql/blobdiff - src/include/tcop/tcopprot.h
Change representation of statement lists, and add statement location info.
[postgresql] / src / include / tcop / tcopprot.h
index 2ac6554e6451b3c1e6bfc6bc99513504a3e6c96d..1958be85b72019e985c2de5b93fca32a907a744b 100644 (file)
@@ -4,7 +4,7 @@
  *       prototypes for postgres.c.
  *
  *
- * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * src/include/tcop/tcopprot.h
@@ -19,8 +19,9 @@
 #ifndef TCOPPROT_H
 #define TCOPPROT_H
 
-#include "executor/execdesc.h"
+#include "nodes/params.h"
 #include "nodes/parsenodes.h"
+#include "nodes/plannodes.h"
 #include "storage/procsignal.h"
 #include "utils/guc.h"
 
@@ -46,9 +47,10 @@ typedef enum
 extern int     log_statement;
 
 extern List *pg_parse_query(const char *query_string);
-extern List *pg_analyze_and_rewrite(Node *parsetree, const char *query_string,
+extern List *pg_analyze_and_rewrite(RawStmt *parsetree,
+                                          const char *query_string,
                                           Oid *paramTypes, int numParams);
-extern List *pg_analyze_and_rewrite_params(Node *parsetree,
+extern List *pg_analyze_and_rewrite_params(RawStmt *parsetree,
                                                          const char *query_string,
                                                          ParserSetupHook parserSetup,
                                                          void *parserSetupArg);
@@ -61,16 +63,19 @@ extern bool check_max_stack_depth(int *newval, void **extra, GucSource source);
 extern void assign_max_stack_depth(int newval, void *extra);
 
 extern void die(SIGNAL_ARGS);
-extern void quickdie(SIGNAL_ARGS) __attribute__((noreturn));
+extern void quickdie(SIGNAL_ARGS) pg_attribute_noreturn();
 extern void StatementCancelHandler(SIGNAL_ARGS);
-extern void FloatExceptionHandler(SIGNAL_ARGS);
+extern void FloatExceptionHandler(SIGNAL_ARGS) pg_attribute_noreturn();
 extern void RecoveryConflictInterrupt(ProcSignalReason reason); /* called from SIGUSR1
                                                                                                                                 * handler */
-extern void prepare_for_client_read(void);
-extern void client_read_ended(void);
-extern const char *process_postgres_switches(int argc, char *argv[],
-                                                 GucContext ctx);
-extern void PostgresMain(int argc, char *argv[], const char *username) __attribute__((noreturn));
+extern void ProcessClientReadInterrupt(bool blocked);
+extern void ProcessClientWriteInterrupt(bool blocked);
+
+extern void process_postgres_switches(int argc, char *argv[],
+                                                 GucContext ctx, const char **dbname);
+extern void PostgresMain(int argc, char *argv[],
+                        const char *dbname,
+                        const char *username) pg_attribute_noreturn();
 extern long get_stack_depth_rlimit(void);
 extern void ResetUsage(void);
 extern void ShowUsage(const char *title);