Hi everyone,
Ok, thanks.
Just to explain: I have some custom objects on my pg_catalog and I would like to restore it in a new test database and I think that this is the best way, isn't it?
Regards,
Juliano
-------- Original Message --------Subject: Re: [GENERAL] Overwrite pg_catalog?Local Time: December 2, 2016 2:18 AMUTC Time: December 2, 2016 2:18 AMFrom: michael.paquier@xxxxxxxxxTo: Francisco Olarte <folarte@xxxxxxxxxxxxxx>Juliano <jplinux@xxxxxxxxxxxxxx>, pgsql-general@xxxxxxxxxxxxxx <pgsql-general@xxxxxxxxxxxxxx>On Thu, Dec 01, 2016 at 01:07:09PM +0100, Francisco Olarte wrote:> Juliano:>> On Thu, Dec 1, 2016 at 12:16 PM, Juliano <jplinux@xxxxxxxxxxxxxx> wrote:> > I tried to restore pg_catalog to my new database, but the existing> > pg_catalog can't be overwritten or dropped, and postgres auto creates> > pg_catalog when I create a new DB.>> This is because, in general, pg_catalog is maintained by DML> statements, restoring it is not going to do what you think.s/DML/DDL/--Michael