pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: theshallow27@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19739: Parameterized first autocommit statement can have different `transaction_timestamp()` and `statement
Date: Sat, 03 Oct 2026 17:58:52 -0400
Message-ID: <261446.1791064732@sss.pgh.pa.us> (raw)
In-Reply-To: <19739-bdca3e8fd9b496fa@postgresql.org>
References: <19739-bdca3e8fd9b496fa@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> The documentation says `transaction_timestamp()` and
> `statement_timestamp()` return the same value during the first statement of
> a
> transaction. With a parameterized query executed as the first command on a
> fresh autocommit connection, they differ.

Strictly speaking, that depends on which steps of an extended-protocol
query count as separate statements.  But I don't think we're going to
modify this documentation to dive into details as abstruse as that;
it would merely confuse the same people the comment is meant to help.

			regards, tom lane






view thread (2+ messages)

Message-ID: <261446.1791064732@sss.pgh.pa.us>
Permalink:  ../261446.1791064732@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/261446.1791064732@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, theshallow27@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19739: Parameterized first autocommit statement can have different `transaction_timestamp()` and `statement
  In-Reply-To: <261446.1791064732@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