diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-11-04 10:39:52 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-11-04 10:39:52 -0400 |
| commit | 34fa0ddae5cf27dd93a5855b30083185d4bb5a5b (patch) | |
| tree | 22e4d83db0eafb8d6be51865e2952a43f6d03e61 /src/include/commands/defrem.h | |
| parent | 8c7146790811ac4eee23fab2226db14b636e1ac5 (diff) | |
Fix CREATE DATABASE so we can pg_upgrade DBs with OIDs above 2^31.
Commit aa0105141 repeated one of the oldest mistakes in our book:
thinking that OID is the same as int32. It isn't of course, and
unsurprisingly the first person who came along with a database
OID above 2 billion broke it. Repair.
Per bug #17677 from Sergey Pankov. Back-patch to v15.
Discussion: https://postgr.es/m/17677-a99fa067d7ed71c9@postgresql.org
Diffstat (limited to 'src/include/commands/defrem.h')
| -rw-r--r-- | src/include/commands/defrem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index 56d2bb66161..1d3ce246c92 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -150,6 +150,7 @@ extern double defGetNumeric(DefElem *def); extern bool defGetBoolean(DefElem *def); extern int32 defGetInt32(DefElem *def); extern int64 defGetInt64(DefElem *def); +extern Oid defGetObjectId(DefElem *def); extern List *defGetQualifiedName(DefElem *def); extern TypeName *defGetTypeName(DefElem *def); extern int defGetTypeLength(DefElem *def); |
