aboutsummaryrefslogtreecommitdiff
path: root/src/include/tcop/tcopprot.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-11-14 19:35:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-11-14 19:35:35 +0000
commitea23ec82c2ec2ac14007f002692743b67b18f80f (patch)
treef2cc94b72ce963bfc815834154d542723c2f0623 /src/include/tcop/tcopprot.h
parent1c7a47cea42fadf91d343e7f037225d5834f3df0 (diff)
downloadpostgresql-ea23ec82c2ec2ac14007f002692743b67b18f80f.tar.gz
postgresql-ea23ec82c2ec2ac14007f002692743b67b18f80f.zip
Remove GUC USERLIMIT variable category, making the affected variables
plain SUSET instead. Also delay processing of options received in client connection request until after we know if the user is a superuser, so that SUSET values can be set that way by legitimate superusers. Per recent discussion.
Diffstat (limited to 'src/include/tcop/tcopprot.h')
-rw-r--r--src/include/tcop/tcopprot.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index b70cc6a0737..1c7825ff460 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.71 2004/08/29 05:06:58 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/tcop/tcopprot.h,v 1.72 2004/11/14 19:35:35 tgl Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
@@ -33,11 +33,10 @@ extern int max_stack_depth;
typedef enum
{
- /* Reverse order so GUC USERLIMIT is easier */
- LOGSTMT_ALL, /* log all statements */
+ LOGSTMT_NONE, /* log no statements */
LOGSTMT_DDL, /* log data definition statements */
LOGSTMT_MOD, /* log modification statements, plus DDL */
- LOGSTMT_NONE /* log no statements */
+ LOGSTMT_ALL /* log all statements */
} LogStmtLevel;
extern LogStmtLevel log_statement;
@@ -63,5 +62,7 @@ extern void authdie(SIGNAL_ARGS);
extern int PostgresMain(int argc, char *argv[], const char *username);
extern void ResetUsage(void);
extern void ShowUsage(const char *title);
+extern void set_debug_options(int debug_flag,
+ GucContext context, GucSource source);
#endif /* TCOPPROT_H */