Re: transction_timestamp() inside of procedures - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: transction_timestamp() inside of procedures
Date
Msg-id 38e36919-8bee-c717-be99-91137ad28aaf@2ndquadrant.com
Whole thread Raw
In response to Re: transction_timestamp() inside of procedures  (Andres Freund <andres@anarazel.de>)
Responses Re: transction_timestamp() inside of procedures  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: transction_timestamp() inside of procedures  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 02/10/2018 16:58, Andres Freund wrote:
> It's a bit weird to make this decision based on these two timestamps
> differing.  For one, it only indirectly seems to be guaranteed that
> xactStartTimestamp is even set to anything here (to 0 by virtue of being
> a global var).

Maybe but it seems to be the simplest way without doing major surgery to
all this code.

Attached is an updated patch with a test case.

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

Attachment

pgsql-hackers by date:

Previous
From: 'Christoph Moench-Tegeder'
Date:
Subject: Re: Function for listing archive_status directory
Next
From: Michael Banck
Date:
Subject: Re: TAP tests for pg_verify_checksums