Re: Ideas for easier debugging of backend problems

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Martijn van Oosterhout <kleptog(at)svana(dot)org>
Subject: Re: Ideas for easier debugging of backend problems
Date: 2005-12-06 20:47:10
Message-ID: 200512062047.jB6KlAL05951@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Added to TODO:

* Add GUC variable to run a command on database panic or
smart/fast/immediate shutdown

---------------------------------------------------------------------------

Peter Eisentraut wrote:
> Martijn van Oosterhout wrote:
> > 3. Add either a GUC or a command line switch or PGOPTION switch to
> > automatically invoke and attach gdb on certain types of error.
> > Obviously you can only do this where stdin, stdout and stderr have
> > not been redirected.
>
> Samba has a configuration parameter that allows you to set an arbitrary
> command as a "panic action" script. This can then be used to gather
> debugging information or prepare a bug report (see other thread). This
> also has the added flexibility that binary packagers can add extra
> information specific to their environment. It may be worthwhile to
> research whether we could do something similar.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-12-06 20:47:25 Re: Upcoming PG re-releases
Previous Message Hannu Krosing 2005-12-06 20:45:31 Re: Concurrent CREATE INDEX, try 2 (was Re: Reducing