aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-06-14 12:32:45 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-06-14 12:36:31 +0300
commitb81831acbc671445061ed41a55fb1cc21d8e2979 (patch)
treef0f1c2aa25958294ba66528912ac1f135da819c2
parent030a2831a8df7829d606a873e28330ea2310fd64 (diff)
downloadpostgresql-b81831acbc671445061ed41a55fb1cc21d8e2979.tar.gz
postgresql-b81831acbc671445061ed41a55fb1cc21d8e2979.zip
Renumber 2PC resource managers so that compared to 9.0, predicate lock rmgr
is added to the end, and existing resource managers keep their old ids. We're not going to guarantee on-disk compatibility for 2PC state files over major releases, but it seems better to avoid changing the ids them anyway. It will help anyone who might want to write external tools to inspect the state files to work with files from different versions, if nothing else. Per complaint from Tom Lane.
-rw-r--r--src/include/access/twophase_rmgr.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/access/twophase_rmgr.h b/src/include/access/twophase_rmgr.h
index 1c7d8bb4c03..090a2bc5db0 100644
--- a/src/include/access/twophase_rmgr.h
+++ b/src/include/access/twophase_rmgr.h
@@ -23,10 +23,10 @@ typedef uint8 TwoPhaseRmgrId;
*/
#define TWOPHASE_RM_END_ID 0
#define TWOPHASE_RM_LOCK_ID 1
-#define TWOPHASE_RM_PREDICATELOCK_ID 2
-#define TWOPHASE_RM_PGSTAT_ID 3
-#define TWOPHASE_RM_MULTIXACT_ID 4
-#define TWOPHASE_RM_MAX_ID TWOPHASE_RM_MULTIXACT_ID
+#define TWOPHASE_RM_PGSTAT_ID 2
+#define TWOPHASE_RM_MULTIXACT_ID 3
+#define TWOPHASE_RM_PREDICATELOCK_ID 4
+#define TWOPHASE_RM_MAX_ID TWOPHASE_RM_PREDICATELOCK_ID
extern const TwoPhaseCallback twophase_recover_callbacks[];
extern const TwoPhaseCallback twophase_postcommit_callbacks[];