Re: Determine if a user and database are available

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Determine if a user and database are available
Date: 2022-09-03 00:33:26
Message-ID: 3698b162-8146-cc59-0da4-390d2c6f8189@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 9/2/22 17:21, Tom Lane wrote:
> Jeffrey Walton <noloader(at)gmail(dot)com> writes:
>> I have another beginner question. I am trying to use pg_isready to
>> determine if a database and user are present. The program seems to
>> always succeed, even when I delete the user or the database.
> That's a feature actually. The intended use of pg_isready is to
> find out if the server is alive, not whether any particular user
> or database name is correct.

Then what's the point of the --username=USERNAME connection option?

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-09-03 00:44:35 Re: Determine if a user and database are available
Previous Message Tom Lane 2022-09-02 22:21:03 Re: Determine if a user and database are available