pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Fix possible crash reading pg_stat_activity.
Date: Thu, 05 Jan 2017 13:15:39 -0500
Message-ID: <8402.1483640139@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoZMaCNopg9Hn64WDMJfJwy_zs+Gy+z603JsZXqe=iqNNA@mail.gmail.com>
References: <E1cPBt9-0003R1-9h@gemulon.postgresql.org>
	<6989.1483637871@sss.pgh.pa.us>
	<CA+TgmoY5tK2LsDvpnL4=1V3TPTaxbxR70OcR1k5cPubQ4_uALA@mail.gmail.com>
	<7931.1483639378@sss.pgh.pa.us>
	<CA+TgmoZMaCNopg9Hn64WDMJfJwy_zs+Gy+z603JsZXqe=iqNNA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> No, I think backend-lifetime is right.  The tranche registrations are
> all backend-local state, so there's no problem with backend A
> registering a string at one address and backend B registering a string
> at a different address.  It's just important that neither of those
> strings goes away before the corresponding backend does.

Then I don't understand what's going on.  Isn't the crash you fixed
because backend A was looking at the tranche containing the lock backend B
was blocked on?  How can a tranche name local to backend B work?

			regards, tom lane


-- 
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 (12+ messages)  latest in thread

Message-ID: <8402.1483640139@sss.pgh.pa.us>
Permalink:  ../8402.1483640139@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/8402.1483640139@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Fix possible crash reading pg_stat_activity.
  In-Reply-To: <8402.1483640139@sss.pgh.pa.us>
  References: <E1cPBt9-0003R1-9h@gemulon.postgresql.org> <6989.1483637871@sss.pgh.pa.us> <CA+TgmoY5tK2LsDvpnL4=1V3TPTaxbxR70OcR1k5cPubQ4_uALA@mail.gmail.com> <7931.1483639378@sss.pgh.pa.us> <CA+TgmoZMaCNopg9Hn64WDMJfJwy_zs+Gy+z603JsZXqe=iqNNA@mail.gmail.com> <8402.1483640139@sss.pgh.pa.us>

* 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