Re: Overwrite pg_catalog?

From: Juliano <jplinux(at)protonmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Francisco Olarte <folarte(at)peoplecall(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Overwrite pg_catalog?
Date: 2016-12-06 08:15:32
Message-ID: DZdVFb3fEuHFKOJSspmYP336M5lpH8T37UcY60Me5PYsNJPmlEHG6TtUuk8OQCtljCKLH2nffz4QiGXZlFwIk9fu5DK8wrKWUDqfF5PkZ1M=@protonmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)paquier(at)gmail(dot)com
To: Francisco Olarte <folarte(at)peoplecall(dot)com>
Juliano <jplinux(at)protonmail(dot)com>, pgsql-general(at)postgresql(dot)org <pgsql-general(at)postgresql(dot)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 <jplinux(at)protonmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2016-12-06 09:01:11 Re: Streaming Replication delay getting bigger
Previous Message Devrim Gündüz 2016-12-06 07:13:53 Re: Install pgAudit extension