diff options
author | Noah Misch <noah@leadboat.com> | 2020-08-15 16:15:59 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2020-08-15 16:16:15 -0700 |
commit | 6af0b12a581a8ef962bcb9d76c63ff9fa8bf9fd9 (patch) | |
tree | 81292c202f92c9a58f4936bd59d209c519c00034 /src/include/storage/lock.h | |
parent | d4031d78460cbbb4ed2fb7be635f84bea0e9a0c1 (diff) | |
download | postgresql-6af0b12a581a8ef962bcb9d76c63ff9fa8bf9fd9.tar.gz postgresql-6af0b12a581a8ef962bcb9d76c63ff9fa8bf9fd9.zip |
Move new LOCKTAG_DATABASE_FROZEN_IDS to end of enum LockTagType.
Several PGXN modules reference LockTagType values; renumbering would
force a recompile of those modules. Oversight in back-patch of today's
commit 566372b3d6435639e4cc4476d79b8505a0297c87. Back-patch to released
branches, v12 through 9.5.
Reported by Tom Lane.
Discussion: https://postgr.es/m/921383.1597523945@sss.pgh.pa.us
Diffstat (limited to 'src/include/storage/lock.h')
-rw-r--r-- | src/include/storage/lock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h index 6b56fa58743..c03028188c2 100644 --- a/src/include/storage/lock.h +++ b/src/include/storage/lock.h @@ -141,8 +141,6 @@ typedef enum LockTagType /* ID info for a relation is DB OID + REL OID; DB OID = 0 if shared */ LOCKTAG_RELATION_EXTEND, /* the right to extend a relation */ /* same ID info as RELATION */ - LOCKTAG_DATABASE_FROZEN_IDS, /* pg_database.datfrozenxid */ - /* ID info for frozen IDs is DB OID */ LOCKTAG_PAGE, /* one page of a relation */ /* ID info for a page is RELATION info + BlockNumber */ LOCKTAG_TUPLE, /* one physical tuple */ @@ -162,10 +160,12 @@ typedef enum LockTagType * Also, we use DB OID = 0 for shared objects such as tablespaces. */ LOCKTAG_USERLOCK, /* reserved for old contrib/userlock code */ - LOCKTAG_ADVISORY /* advisory user locks */ + LOCKTAG_ADVISORY, /* advisory user locks */ + LOCKTAG_DATABASE_FROZEN_IDS /* pg_database.datfrozenxid */ + /* ID info for frozen IDs is DB OID */ } LockTagType; -#define LOCKTAG_LAST_TYPE LOCKTAG_ADVISORY +#define LOCKTAG_LAST_TYPE LOCKTAG_DATABASE_FROZEN_IDS extern const char *const LockTagTypeNames[]; |