From: Andres Freund <andres@anarazel.de>
To: Amit Khandekar <amitdkhan.pg@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
Date: Mon, 14 Jan 2019 15:37:14 -0800
Message-ID: <20190114233714.mi77d2p25juwpyjx@alap3.anarazel.de> (raw)
In-Reply-To: <CAJ3gD9dZyxrtL0rJfoNoOj6v7fJSDaXBngi9wy5XU8m-ioXhAA@mail.gmail.com>
References: <E1gPG3j-0003cy-03@gemulon.postgresql.org>
<20181121082042.GA15795@msg.df7cb.de>
<74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com>
<31665.1546540842@sss.pgh.pa.us>
<20190104203926.evck47fge5ugjwh7@alap3.anarazel.de>
<CAJ3gD9dZyxrtL0rJfoNoOj6v7fJSDaXBngi9wy5XU8m-ioXhAA@mail.gmail.com>
Hi,
On 2019-01-07 17:03:20 +0530, Amit Khandekar wrote:
> On Sat, 5 Jan 2019 at 02:09, Andres Freund <andres@anarazel.de> wrote:
> > On 2019-01-03 13:40:42 -0500, Tom Lane wrote:
> > > I noticed that this patch has broken restores of existing dump files:
> > >
> > > psql:testbed.public.backup:82: ERROR: unrecognized configuration parameter "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".
>
> Attached is a patch that does this.
Thanks! I've pushed this, after some minor editorialization (hiding the
GUC, shortened description, shortened error message).
Regards,
Andres
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de, amitdkhan.pg@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgresql.org
Subject: Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
In-Reply-To: <20190114233714.mi77d2p25juwpyjx@alap3.anarazel.de>
References: <E1gPG3j-0003cy-03@gemulon.postgresql.org> <20181121082042.GA15795@msg.df7cb.de> <74aafd48-1a2a-37fb-aab8-ffaed70a2b0f@2ndquadrant.com> <31665.1546540842@sss.pgh.pa.us> <20190104203926.evck47fge5ugjwh7@alap3.anarazel.de> <CAJ3gD9dZyxrtL0rJfoNoOj6v7fJSDaXBngi9wy5XU8m-ioXhAA@mail.gmail.com> <20190114233714.mi77d2p25juwpyjx@alap3.anarazel.de>
* 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