Re: Overwrite pg_catalog?

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

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 Jeff Janes 2016-12-02 02:59:33 Re: Moving pg_xlog
Previous Message Michael Paquier 2016-12-02 02:17:11 Re: Moving pg_xlog