From: Tom Lane <tgl@sss.pgh.pa.us>
To: spankov@gotrg.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17677: pg_upgrade error 14.5->15.0
Date: Fri, 04 Nov 2022 09:35:36 -0400
Message-ID: <2281935.1667568936@sss.pgh.pa.us> (raw)
In-Reply-To: <17677-a99fa067d7ed71c9@postgresql.org>
References: <17677-a99fa067d7ed71c9@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> I've try to execute CREATE DATABASE command on Postgresql 15.0 instance
> manually and got the same error.
> ^
> Command was:
> CREATE DATABASE "rc16mo_r1_trg_taxcommitmentreporter_fzsymvlz" WITH TEMPLATE
> = template0 OID = 4236896942 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE
> = 'en_US.UTF-8';"
> I truncated OID parameter to 42362 and succesfully executed command
> CREATE DATABASE "rc16mo_r1_trg_taxcommitmentreporter_fzsymvlz" WITH TEMPLATE
> = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'en_US.UTF-8'
> OID=42362;
Yeah, that evidently is a parser bug: can't handle OIDs above INT_MAX.
I thought maybe we could tweak pg_dump to quote the OID value, but nope:
# CREATE DATABASE "rc16mo_r1_trg_taxcommitmentreporter_fzsymvlz" WITH TEMPLATE
= template0 OID = '4236896942' ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE
= 'en_US.UTF-8';
ERROR: oid requires an integer value
Somebody really worked at it to make this this broken :-(.
I'll see if I can get it fixed in time for 15.1. Thanks for the
report!
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, spankov@gotrg.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17677: pg_upgrade error 14.5->15.0
In-Reply-To: <2281935.1667568936@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox