Skip to content

Commit 78e8f00

Browse files
committed
Clean up some randomness associated with trace_recovery_messages: don't
put the variable declaration in the middle of a bunch of externs, and do use extern where it should be used.
1 parent 09698bb commit 78e8f00

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/backend/utils/misc/guc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.555 2010/06/15 07:52:10 itagaki Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.556 2010/06/17 17:44:40 tgl Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -119,8 +119,6 @@ extern bool fullPageWrites;
119119
extern int vacuum_defer_cleanup_age;
120120
extern int ssl_renegotiation_limit;
121121

122-
int trace_recovery_messages = LOG;
123-
124122
#ifdef TRACE_SORT
125123
extern bool trace_sort;
126124
#endif
@@ -375,6 +373,7 @@ int log_min_messages = WARNING;
375373
int client_min_messages = NOTICE;
376374
int log_min_duration_statement = -1;
377375
int log_temp_files = -1;
376+
int trace_recovery_messages = LOG;
378377

379378
int num_temp_buffers = 1000;
380379

src/include/miscadmin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
16-
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.220 2010/02/26 02:01:20 momjian Exp $
16+
* $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.221 2010/06/17 17:44:40 tgl Exp $
1717
*
1818
* NOTES
1919
* some of the information in this file should be moved to other files.
@@ -242,7 +242,7 @@ extern void PreventCommandDuringRecovery(const char *cmdname);
242242

243243
/* in utils/misc/guc.c */
244244
extern int trace_recovery_messages;
245-
int trace_recovery(int trace_level);
245+
extern int trace_recovery(int trace_level);
246246

247247
/*****************************************************************************
248248
* pdir.h -- *

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy