Re: BUG #15168: "pg_isready -d" effectively ignores given databasename

Поиск
Список
Период
Сортировка
От jake
Тема Re: BUG #15168: "pg_isready -d" effectively ignores given databasename
Дата
Msg-id 162fb1131d6.12ac3be2b9673.5239359614834465495@zoho.com
обсуждение исходный текст
Ответ на BUG #15168: "pg_isready -d" effectively ignores given database name  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15168: "pg_isready -d" effectively ignores given database name  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
Well, after fleshing out your command, I got:

psql -tc "select 1 from pg_catalog.pg_database where datname='snowdrift';" | grep -qw 1

That looks more complicated than the StackOverflow solution:

psql -lt | cut -f1 -d \| | grep -qw <db-name>

Or at least it's longer. Hmm. I guess personal taste is a big factor here.

Jake T.


В списке pgsql-bugs по дате отправления:

Предыдущее
От: Rick Gabriel
Дата:
Сообщение: Re: BUG #15170: PQtransactionStatus returns ACTIVE after Empty Commit
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #15168: "pg_isready -d" effectively ignores given database name