pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: transction_timestamp() inside of procedures
Date: Tue, 2 Oct 2018 10:55:56 +0200
Message-ID: <4ff8e6a2-c585-02fe-3f20-b9aa26fa2c4f@2ndquadrant.com> (raw)
In-Reply-To: <e2ad8aaf-e1d8-499e-4de0-e3616f8d908d@2ndquadrant.com>
References: <20180926155443.u4zh7jactzflys3z@alvherre.pgsql>
	<ec816bd0-0357-23a9-bea2-3ef1619eb340@2ndquadrant.com>
	<e2ad8aaf-e1d8-499e-4de0-e3616f8d908d@2ndquadrant.com>

On 28/09/2018 09:35, Peter Eisentraut wrote:
>> That's certainly a good argument.  Note that if we implemented that the
>> transaction timestamp is advanced inside procedures, that would also
>> mean that the transaction timestamp as observed in pg_stat_activity
>> would move during VACUUM, for example.  That might or might not be
>> desirable.
> 
> Attached is a rough implementation.
> 
> I'd be mildly in favor of doing this, but we have mentioned tradeoffs in
> this thread.

So do we want to do this or not?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (32+ messages)  latest in thread

Message-ID: <4ff8e6a2-c585-02fe-3f20-b9aa26fa2c4f@2ndquadrant.com>
Permalink:  ../4ff8e6a2-c585-02fe-3f20-b9aa26fa2c4f@2ndquadrant.com/
Also on:    postgresql.org/message-id/4ff8e6a2-c585-02fe-3f20-b9aa26fa2c4f@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, alvherre@2ndquadrant.com, tgl@sss.pgh.pa.us, bruce@momjian.us, michael@paquier.xyz, andres@anarazel.de
  Subject: Re: transction_timestamp() inside of procedures
  In-Reply-To: <4ff8e6a2-c585-02fe-3f20-b9aa26fa2c4f@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