pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Alex Shulgin <ash@commandprompt.com>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
Date: Thu, 04 Dec 2014 23:10:35 +0800
Message-ID: <5480796B.7020203@2ndquadrant.com> (raw)
In-Reply-To: <87388v4ggf.fsf@commandprompt.com>
References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org>
	<54802C7F.90606@vmware.com>
	<87d27z4i0b.fsf@commandprompt.com>
	<20141204143555.GA26945@alvh.no-ip.org>
	<87388v4ggf.fsf@commandprompt.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 12/04/2014 10:50 PM, Alex Shulgin wrote:
> Is there a way to pause the bootstrap process so I can attach gdb to it?

With a newer gdb, you can instead tell gdb to follow all forks. I wrote
some notes on it recently.

http://blog.2ndquadrant.com/processes-breakpoints-watchpoints-postgresql/

I've found it really handy when debugging crashes in regression tests.

However, it's often simpler to just:

ulimit -c unlimited
make check

(or whatever your crashing test is) then look at the core files that are
produced.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (28+ messages)  latest in thread

Message-ID: <5480796B.7020203@2ndquadrant.com>
Permalink:  ../5480796B.7020203@2ndquadrant.com/
Also on:    postgresql.org/message-id/5480796B.7020203@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: craig@2ndquadrant.com, ash@commandprompt.com, alvherre@2ndquadrant.com, hlinnakangas@vmware.com, pgsql-hackers@postgreSQL.org
  Subject: Re: [COMMITTERS] pgsql: Keep track of transaction commit timestamps
  In-Reply-To: <5480796B.7020203@2ndquadrant.com>
  References: <E1XwBJu-0000Oh-PA@gemulon.postgresql.org> <54802C7F.90606@vmware.com> <87d27z4i0b.fsf@commandprompt.com> <20141204143555.GA26945@alvh.no-ip.org> <87388v4ggf.fsf@commandprompt.com> <5480796B.7020203@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox