Re: Overwrite pg_catalog?

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: 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-01 16:56:57
Message-ID: 375109e6-de88-d1a0-8240-8f6f64871fee@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/01/2016 03:16 AM, Juliano wrote:
> Hi everyone,
>
> 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.
>
> So, there is a way to restore the pg_catalog to a new database?

Why would you do that? You should be restoring from a proper backup
which will already have everything it needs to populate the new
pg_catalog correctly.

JD

>
> Regards,
> Juliano

--
Command Prompt, Inc. http://the.postgres.company/
+1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
Unless otherwise stated, opinions are my own.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2016-12-01 16:58:25 Re: Index is not used for "IN (non-correlated subquery)"
Previous Message Adrian Klaver 2016-12-01 16:47:11 Re: PostgreSQL ODBC driver for OSX 10.8