Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ae9pi-00078i-Ae for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Mar 2016 23:17:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ae9ph-0003vp-SR for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Mar 2016 23:17:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ae9pg-0003uF-2w for pgsql-hackers@postgresql.org; Thu, 10 Mar 2016 23:17:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ae9pd-0000ay-1X for pgsql-hackers@postgresql.org; Thu, 10 Mar 2016 23:17:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2ANHMUl015171; Thu, 10 Mar 2016 18:17:22 -0500 From: Tom Lane To: Robert Haas cc: Pavel Stehule , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity. In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Thu, 10 Mar 2016 17:08:18 -0500" Date: Thu, 10 Mar 2016 18:17:22 -0500 Message-ID: <15170.1457651842@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas 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