Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyNVJ-0001Zi-2h for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 19:32:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dyNVI-0005V9-IY for pgsql-committers@arkaria.postgresql.org; Sat, 30 Sep 2017 19:32:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyNVI-0005Uy-11 for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 19:32:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dyNVF-0002SK-6J for pgsql-committers@postgresql.org; Sat, 30 Sep 2017 19:32:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8UJWht3024124; Sat, 30 Sep 2017 15:32:43 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Support arrays over domains. In-reply-to: <678e49f8-e32a-9b96-8e3f-a8c63d2f0e18@2ndQuadrant.com> References: <678e49f8-e32a-9b96-8e3f-a8c63d2f0e18@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Sat, 30 Sep 2017 15:19:05 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <24122.1506799963.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 30 Sep 2017 15:32:43 -0400 Message-ID: <24123.1506799963@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andrew Dunstan writes: > We seem to have caused a problem with pg_upgrade :-( > pg_restore: [archiver (db)] could not execute query: ERROR:  pg_type > array OID value not set when in binary upgrade mode > Here we're upgrading from 9.2 to HEAD. Of course, there isn't an array > oid for the domain in 9.2. Hmm. That's pretty annoying. We could certainly go ahead and assign some unused type OID to the new array type, but the receiving backend can't really do that, since it doesn't know which type OIDs will be assigned later in the dump file. Maybe we could put the burden on pg_upgrade (pg_dump --binary-upgrade) to select an OID that's not in use in the source database. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers