Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.
Amit Khandekar <amitdkhan.pg@gmail.com>
From: Amit Khandekar <amitdkhan.pg@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-01-07T11:33:20Z
Lists: pgsql-hackers
Attachments
- errmsg_default_with_oids.patch (application/octet-stream) patch
On Sat, 5 Jan 2019 at 02:09, Andres Freund <andres@anarazel.de> wrote: > > Hi, > > 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. > > Makes sense, I (or a colleague) will look into that next week. Wanna get my > head out of pluggable storage first... > > Greetings, > > Andres Freund > -- Thanks, -Amit Khandekar EnterpriseDB Corporation The Postgres Database Company
Commits
-
Remove line duplicated during conflict resolution.
- 22bc403029c0 12.0 landed
-
Re-add default_with_oids GUC to avoid breaking old dump files.
- de66987adb8a 12.0 landed
-
Remove WITH OIDS support, change oid catalog column visibility.
- 578b229718e8 12.0 cited