Skip to content

Commit 6674401

Browse files
committed
Add comments about definitions that may affect PG_CONTROL_VERSION,
per recent unintended-initdb-forcing fiasco
1 parent 5802824 commit 6674401

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/include/catalog/pg_control.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.56 2010/06/03 14:50:30 tgl Exp $
11+
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.57 2010/06/03 20:37:13 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -26,6 +26,7 @@
2626
/*
2727
* Body of CheckPoint XLOG records. This is declared here because we keep
2828
* a copy of the latest one in pg_control for possible disaster recovery.
29+
* Changing this struct requires a PG_CONTROL_VERSION bump.
2930
*/
3031
typedef struct CheckPoint
3132
{
@@ -60,7 +61,10 @@ typedef struct CheckPoint
6061
#define XLOG_PARAMETER_CHANGE 0x60
6162

6263

63-
/* System status indicator */
64+
/*
65+
* System status indicator. Note this is stored in pg_control; if you change
66+
* it, you must bump PG_CONTROL_VERSION
67+
*/
6468
typedef enum DBState
6569
{
6670
DB_STARTUP = 0,

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