pgsql: Fix volatility marking of commit timestamp functions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix volatility marking of commit timestamp functions
Date: 2015-07-30 18:21:41
Message-ID: E1ZKsSb-0008Vg-VA@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix volatility marking of commit timestamp functions

They are marked stable, but since they act on instantaneous state and it
is possible to consult state of transactions as they commit, the results
could change mid-query. They need to be marked volatile, and this
commit does so.

There would normally be a catversion bump here, but this is so much a
niche feature and I don't believe there's real damage from the incorrect
marking, that I refrained.

Backpatch to 9.5, where commit timestamps where introduced.

Per note from Fujii Masao.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e8e86fbc8b3619da54c485cf05272ccf1dac1a7d

Modified Files
--------------
src/include/catalog/pg_proc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2015-07-31 00:51:30 pgsql: Consolidate makefile code for setting top_srcdir, srcdir and VPA
Previous Message Alvaro Herrera 2015-07-30 18:08:28 pgsql: Fix broken assertion in BRIN code