From: huang <foggyglass@163.com>
To: depesz@depesz.com
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: vacuumdb has a fatal after database rename
Date: Thu, 29 Sep 2016 22:05:18 +0800 (CST)
Message-ID: <82eefc1.ed30.157764383eb.Coremail.foggyglass@163.com> (raw)
In-Reply-To: <20160928172937.se6i42u5l67eanuh@depesz.com>
References: <57EBCBA1.2010700@163.com>
<20160928172937.se6i42u5l67eanuh@depesz.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I am sorry .
we want to hide the database postgres for the security concern .
However I found this message in log .
I think there are some problem in vacuumdb .
But now I see this is my mistake .
Best regards,
TT
At 2016-09-29 01:29:37, "hubert depesz lubaczewski" <depesz@depesz.com> wrote:
>On Wed, Sep 28, 2016 at 09:54:41PM +0800, huang wrote:
>> If I rename the database postgres before vacuumdb , the vacuumdb say
>> FATAL: database "postgres" does not exist.
>
>So don't rename it. It's being used because you are running vacuumdb
>using postgres shell account.
>
>You could try something like:
>
>PGDATABASE=template1 vacuumdb -az
>
>but generally speaking it is not advised to rename postgres db.
>
>Best regards,
>
>depesz
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: foggyglass@163.com, depesz@depesz.com
Subject: Re: vacuumdb has a fatal after database rename
In-Reply-To: <82eefc1.ed30.157764383eb.Coremail.foggyglass@163.com>
References: <57EBCBA1.2010700@163.com> <20160928172937.se6i42u5l67eanuh@depesz.com> <82eefc1.ed30.157764383eb.Coremail.foggyglass@163.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox