Re: how to sync the system table with pg_dump - Mailing list pgsql-general

From Albe Laurenz
Subject Re: how to sync the system table with pg_dump
Date
Msg-id D960CB61B694CF459DCFB4B0128514C20230951A@exadv11.host.magwien.gv.at
Whole thread Raw
In response to how to sync the system table with pg_dump  (Gary Fu <gfu@saicmodis.com>)
Responses Re: how to clean up temporary schemas (how to sync the system table with pg_dump)
List pgsql-general
Gary Fu wrote:
> I tried to use pg_dump to restore (sync) a database, but I noticed that
> the system table pg_namespace was not synced.

If you restore a database, entries in pg_namespace will be created if
the dump contains any CREATE SCHEMA statements, i.e. if there are
schemas in your original database.

Check if the dump was created and restored by a database user with
the appropriate permissions (a superuser ideally), and look out for
error messages.

Do not try to manually change pg_namespace. Just don't.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Bjørn T Johansen
Date:
Subject: Re: How can I compare sql create script with running database?
Next
From: "Richard Broersma"
Date:
Subject: Re: Tripping up on my first attempt at building PG from source