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: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
Date: Thu, 10 Mar 2016 18:17:22 -0500
Message-ID: <15170.1457651842@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoadfwY4npZh8ATW4CWFeB3uLpY9YmX18Z=UJmxUnBQVLw@mail.gmail.com>
References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org>
	<CAFj8pRBDO-rbHgWoKVYuJkifa6zcTLFS9wfJ55ECeuqt8uAsaQ@mail.gmail.com>
	<CA+TgmoYujHaPmz9hqi4Meh2cNzzVErOi3ivyrvdd_dpY88BX6Q@mail.gmail.com>
	<CAFj8pRAjRzmdi6_NBfkQgZefbJ2s+i8g=us79GzCy9YQ=puLmg@mail.gmail.com>
	<CA+TgmobYq-8OMVPpLh=a9MVz_A=LTR89JYnfUmofdy_8c44dnA@mail.gmail.com>
	<CA+Tgmoa-w+px2=bo4Ye2qdZfJVA3LR7p0zco=L7L+UEbV-WrOA@mail.gmail.com>
	<CA+TgmoadfwY4npZh8ATW4CWFeB3uLpY9YmX18Z=UJmxUnBQVLw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> Or ... maybe this is intentional behavior?  Now that I think about it,
> doesn't each backend cache this info the first time its transaction
> reads the data?

Your view of pg_stat_activity is supposed to hold still within a
transaction, yes.  Otherwise it'd be really painful to do any complicated
joins.  I think there may be a function to explicitly flush the cache,
if you really need to see intratransaction changes.

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

Message-ID: <15170.1457651842@sss.pgh.pa.us>
Permalink:  ../15170.1457651842@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15170.1457651842@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, pavel.stehule@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
  In-Reply-To: <15170.1457651842@sss.pgh.pa.us>
  References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org> <CAFj8pRBDO-rbHgWoKVYuJkifa6zcTLFS9wfJ55ECeuqt8uAsaQ@mail.gmail.com> <CA+TgmoYujHaPmz9hqi4Meh2cNzzVErOi3ivyrvdd_dpY88BX6Q@mail.gmail.com> <CAFj8pRAjRzmdi6_NBfkQgZefbJ2s+i8g=us79GzCy9YQ=puLmg@mail.gmail.com> <CA+TgmobYq-8OMVPpLh=a9MVz_A=LTR89JYnfUmofdy_8c44dnA@mail.gmail.com> <CA+Tgmoa-w+px2=bo4Ye2qdZfJVA3LR7p0zco=L7L+UEbV-WrOA@mail.gmail.com> <CA+TgmoadfwY4npZh8ATW4CWFeB3uLpY9YmX18Z=UJmxUnBQVLw@mail.gmail.com> <15170.1457651842@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