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 AM UTC Time: December 2, 2016 2:18 AM From: michael.paqu...@gmail.com To: Francisco Olarte <fola...@peoplecall.com> Juliano <jpli...@protonmail.com>, pgsql-general@postgresql.org <pgsql-general@postgresql.org> On Thu, Dec 01, 2016 at 01:07:09PM +0100, Francisco Olarte wrote: > Juliano: > > On Thu, Dec 1, 2016 at 12:16 PM, Juliano <jpli...@protonmail.com> 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