aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2010-06-03 20:37:13 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2010-06-03 20:37:13 +0000
commit667440162cc20ac7d8f67cb8830d10eeeeeb8ff7 (patch)
treed09fed91b4750a758a1ba645148363f8074f505f
parent58028240bbfe6ccdfa1a8ffa55bb65290480aada (diff)
downloadpostgresql-667440162cc20ac7d8f67cb8830d10eeeeeb8ff7.tar.gz
postgresql-667440162cc20ac7d8f67cb8830d10eeeeeb8ff7.zip
Add comments about definitions that may affect PG_CONTROL_VERSION,
per recent unintended-initdb-forcing fiasco
-rw-r--r--src/include/catalog/pg_control.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/catalog/pg_control.h b/src/include/catalog/pg_control.h
index ad936242c62..f3fdb05d550 100644
--- a/src/include/catalog/pg_control.h
+++ b/src/include/catalog/pg_control.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.56 2010/06/03 14:50:30 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.57 2010/06/03 20:37:13 alvherre Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,6 +26,7 @@
/*
* Body of CheckPoint XLOG records. This is declared here because we keep
* a copy of the latest one in pg_control for possible disaster recovery.
+ * Changing this struct requires a PG_CONTROL_VERSION bump.
*/
typedef struct CheckPoint
{
@@ -60,7 +61,10 @@ typedef struct CheckPoint
#define XLOG_PARAMETER_CHANGE 0x60
-/* System status indicator */
+/*
+ * System status indicator. Note this is stored in pg_control; if you change
+ * it, you must bump PG_CONTROL_VERSION
+ */
typedef enum DBState
{
DB_STARTUP = 0,