Re: please define 'statement' in the glossary

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>, petermittere@gmail.com, pgsql-docs@lists.postgresql.org
Date: 2025-07-14T15:58:30Z
Lists: pgsql-docs
On Mon, Jul 14, 2025 at 8:45 AM David G. Johnston <
david.g.johnston@gmail.com> wrote:

> I would then add an example In 53.2.2.1 showing this happening using "psql
> -c"
>
>
Cannot readily test this presently but I wonder what the following produces:

psql -c "begin; select statement_timestamp(), transaction_timestamp();
select statement_timestamp(), transaction_timestamp(); commit; begin;
select statement_timestamp(), transaction_timestamp(); commit;"

Transaction timestamp should progress while statement timestamp should not,
right?

David J.

Commits

  1. Doc: clarify description of current-date/time functions.

  2. Some editorial work on the documentation of the current-date/time