From: hubert depesz lubaczewski <depesz@depesz.com>
To: huang <foggyglass@163.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: vacuumdb has a fatal after database rename
Date: Wed, 28 Sep 2016 19:29:37 +0200
Message-ID: <20160928172937.se6i42u5l67eanuh@depesz.com> (raw)
In-Reply-To: <57EBCBA1.2010700@163.com>
References: <57EBCBA1.2010700@163.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: depesz@depesz.com, foggyglass@163.com
Subject: Re: vacuumdb has a fatal after database rename
In-Reply-To: <20160928172937.se6i42u5l67eanuh@depesz.com>
References: <57EBCBA1.2010700@163.com> <20160928172937.se6i42u5l67eanuh@depesz.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