Re: psql \conninfo command (was: Patch: psql \whoami option)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: psql \conninfo command (was: Patch: psql \whoami option)
Дата
Msg-id AANLkTil_Rh0i63qbLgXWrx7sov2uoNqHbDTbSOES6fTO@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql \conninfo command (was: Patch: psql \whoami option)  (David Christensen <david@endpoint.com>)
Список pgsql-hackers
On Mon, Jul 19, 2010 at 11:41 PM, David Christensen <david@endpoint.com> wrote:
>> I took a look at this patch.  One problem is that it doesn't handle
>> the case where there is no database connection (for example, shut down
>> the database with pg_ctl, then do select 1, then do \conninfo).  I've
>> fixed that in the attached version.
>
> Thanks, I hadn't considered that case.

For some reason, I end up crashing a lot of databases during
development (must be my lousy coding).  So I've had occasion to run
across this, ahem, a few times...

> +1 from me; I don't care what color the bikeshed is, as long as it gets the point across, which this does, and is
consistentto boot. 

Great, committed that way.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Explicit psqlrc
Следующее
От: David Christensen
Дата:
Сообщение: Re: psql \conninfo command (was: Patch: psql \whoami option)