Re: BUG #14312: Hardcoded dbname on test_postmaster_connection - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14312: Hardcoded dbname on test_postmaster_connection
Date
Msg-id 10495.1473088406@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14312: Hardcoded dbname on test_postmaster_connection  (hernan.bazan@intel.com)
List pgsql-bugs
hernan.bazan@intel.com writes:
> When calling "pg_ctl start", providing a storage area (-D), the connection
> test uses a hardcoded dbname (dbname=postgres), causing an error message:
> no pg_hba.conf entry for host "[local]", user "xxxxx", database "postgres",
> SSL off
> Because we deleted that DB. There is no way to define a different DB to test
> the connection.
> Is the deletion of postgres DB supported?

Not really.  You can do it but you will have operational annoyances like
that one, and probably not only from pg_ctl.  I'd suggest recreating it.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14310: Triggers do not fire
Next
From: "Bazan, Hernan"
Date:
Subject: Re: BUG #14312: Hardcoded dbname on test_postmaster_connection