Re: How to Run postgres inside gdb for debugging

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: How to Run postgres inside gdb for debugging
Дата
Msg-id 200202232011.g1NKBiU02149@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: How to Run postgres inside gdb for debugging  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Lee Kindness <lkindness@csl.co.uk> writes:
> > The problem is you'll need to do this very fast - this is why postgres
> > has a '-W' option to tell the process to wait a defined time before
> > really starting up - giving you time to connect. See:
>
> >  http://www.geocrawler.com/archives/3/10/1999/4/0/1649841/
>
> It's not necessary to use -W unless you are trying to debug something
> that happens during the backend startup process.  Even then, I wouldn't
> make it a postmaster parameter, because that causes *all* started
> backends to delay.  Instead say export PGOPTIONS="-W n" on the client
> side before you start psql, so the delay only applies to your backend
> under test.  See
>
> http://archives.postgresql.org/pgsql-hackers/2000-01/msg01463.php
>
> (Bruce said he was going to put that info into FAQ_DEV, but he never
> did...)

It is in the main FAQ already.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems with DBI, DBD::Pg and Postgres 7.2.
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: game db