Clean up some randomness associated with trace_recovery_messages: don't
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jun 2010 17:44:40 +0000 (17:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 17 Jun 2010 17:44:40 +0000 (17:44 +0000)
put the variable declaration in the middle of a bunch of externs,
and do use extern where it should be used.

src/backend/utils/misc/guc.c
src/include/miscadmin.h

index 2461966f0d2eab49dd3413dbd7cc74967e4b9e27..48280b460c2c7ed28e7635447e38f0338a268ef2 100644 (file)
@@ -10,7 +10,7 @@
  * Written by Peter Eisentraut <peter_e@gmx.net>.
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.555 2010/06/15 07:52:10 itagaki Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.556 2010/06/17 17:44:40 tgl Exp $
  *
  *--------------------------------------------------------------------
  */
@@ -119,8 +119,6 @@ extern bool fullPageWrites;
 extern int     vacuum_defer_cleanup_age;
 extern int     ssl_renegotiation_limit;
 
-int                    trace_recovery_messages = LOG;
-
 #ifdef TRACE_SORT
 extern bool trace_sort;
 #endif
@@ -375,6 +373,7 @@ int                 log_min_messages = WARNING;
 int                    client_min_messages = NOTICE;
 int                    log_min_duration_statement = -1;
 int                    log_temp_files = -1;
+int                    trace_recovery_messages = LOG;
 
 int                    num_temp_buffers = 1000;
 
index 5d17acd6cddf679a365dc594c2daa8903d043630..a65bcda5044306ea4d9319345970e952ed95744c 100644 (file)
@@ -13,7 +13,7 @@
  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.220 2010/02/26 02:01:20 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.221 2010/06/17 17:44:40 tgl Exp $
  *
  * NOTES
  *       some of the information in this file should be moved to other files.
@@ -242,7 +242,7 @@ extern void PreventCommandDuringRecovery(const char *cmdname);
 
 /* in utils/misc/guc.c */
 extern int     trace_recovery_messages;
-int                    trace_recovery(int trace_level);
+extern int     trace_recovery(int trace_level);
 
 /*****************************************************************************
  *       pdir.h --                                                                                                                              *