mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Re-add default_with_oids GUC to avoid breaking old dump files.
After 578b229718
/ the removal of WITH OIDS support, older dump files
containing
SET default_with_oids = false;
either report unnecessary errors (as the subsequent tables have no
oids) or even fail to restore entirely (when using transaction mode).
To avoid that, re-add the GUC, but don't allow setting it to true.
Per complaint from Tom Lane.
Author: Amit Khandekar, editorialized by me
Discussion: https://postgr.es/m/CAJ3gD9dZyxrtL0rJfoNoOj6v7fJSDaXBngi9wy5XU8m-ioXhAA@mail.gmail.com
This commit is contained in:
@ -767,3 +767,7 @@ NOTICE: text search configuration "no_such_config" does not exist
|
||||
select func_with_bad_set();
|
||||
ERROR: invalid value for parameter "default_text_search_config": "no_such_config"
|
||||
reset check_function_bodies;
|
||||
set default_with_oids to f;
|
||||
-- Should not allow to set it to true.
|
||||
set default_with_oids to t;
|
||||
ERROR: tables declared WITH OIDS are not supported
|
||||
|
@ -288,3 +288,7 @@ set default_text_search_config = no_such_config;
|
||||
select func_with_bad_set();
|
||||
|
||||
reset check_function_bodies;
|
||||
|
||||
set default_with_oids to f;
|
||||
-- Should not allow to set it to true.
|
||||
set default_with_oids to t;
|
||||
|
Reference in New Issue
Block a user