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