Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqwrI-0002ER-Kt for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Nov 2022 13:35:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqwrH-0008VB-Cl for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Nov 2022 13:35:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqwrH-0008V2-49 for pgsql-bugs@lists.postgresql.org; Fri, 04 Nov 2022 13:35:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqwrF-0002Lt-1z for pgsql-bugs@lists.postgresql.org; Fri, 04 Nov 2022 13:35:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2A4DZauq2281936; Fri, 4 Nov 2022 09:35:37 -0400 From: Tom Lane To: spankov@gotrg.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17677: pg_upgrade error 14.5->15.0 In-reply-to: <17677-a99fa067d7ed71c9@postgresql.org> References: <17677-a99fa067d7ed71c9@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 04 Nov 2022 12:30:19 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2281934.1667568936.1@sss.pgh.pa.us> Date: Fri, 04 Nov 2022 09:35:36 -0400 Message-ID: <2281935.1667568936@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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