mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 18:13:18 +08:00
Reset restoring gucs rather than explicitly setting 'off'
Setting the `timescaledb.restoring` guc explicitly to 'off' for the db meant that the setting got exported in `pg_dumpall` and some other cases where that setting would then conflict with the setting set by the pre_restore function causing it to be overridden and causing errors on restore. This changes to `RESET` so that instead it will take the system default and not be dumped separately as an override.
This commit is contained in:
parent
04bcc949c1
commit
66544c7564
@ -25,8 +25,8 @@ DECLARE
|
||||
db text;
|
||||
BEGIN
|
||||
SELECT current_database() INTO db;
|
||||
EXECUTE format($$ALTER DATABASE %I SET timescaledb.restoring ='off'$$, db);
|
||||
SET SESSION timescaledb.restoring='off';
|
||||
EXECUTE format($$ALTER DATABASE %I RESET timescaledb.restoring $$, db);
|
||||
RESET timescaledb.restoring;
|
||||
PERFORM _timescaledb_internal.restart_background_workers();
|
||||
|
||||
--try to restore the backed up uuid, if the restore did not set one
|
||||
|
Loading…
x
Reference in New Issue
Block a user