Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf7vI-0003c3-HY for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jan 2019 18:40:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gf7vH-0007qA-9Q for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jan 2019 18:40:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf7vH-0007nw-1X for pgsql-hackers@lists.postgresql.org; Thu, 03 Jan 2019 18:40:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gf7vE-0002eN-Ul for pgsql-hackers@postgresql.org; Thu, 03 Jan 2019 18:40:50 +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 x03IegsP031666; Thu, 3 Jan 2019 13:40:43 -0500 From: Tom Lane To: Andres Freund cc: PostgreSQL Hackers Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility. In-reply-to: <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com> References: <20181121082042.GA15795@msg.df7cb.de> <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 21 Nov 2018 10:54:21 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31664.1546540842.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Jan 2019 13:40:42 -0500 Message-ID: <31665.1546540842@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I noticed that this patch has broken restores of existing dump files: psql:testbed.public.backup:82: ERROR: unrecognized configuration paramete= r "default_with_oids" Quite aside from the fact that this won't work if the user tries to restore in single-transaction or no-error mode, this is really really unhelpful because it's impossible to tell whether the error is ignorable or not, except by digging through the dump file. What you should do is restore that GUC, but add a check-hook that throws an error for an attempt to set it to "true". regards, tom lane