Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6674401

Browse files
committed
Add comments about definitions that may affect PG_CONTROL_VERSION,
per recent unintended-initdb-forcing fiasco
1 parent5802824 commit6674401

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/0314:50:30 tgl Exp $
11+
* $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.57 2010/06/0320: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
typedefstructCheckPoint
3132
{
@@ -60,7 +61,10 @@ typedef struct CheckPoint
6061
#defineXLOG_PARAMETER_CHANGE0x60
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
typedefenumDBState
6569
{
6670
DB_STARTUP=0,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp