]> granicus.if.org Git - postgresql/commit
Fix volatility marking of commit timestamp functions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 30 Jul 2015 18:19:49 +0000 (15:19 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 30 Jul 2015 18:19:49 +0000 (15:19 -0300)
commit71b66e78e432d99325db6356f056cb3f03b3d7b7
tree75d8bf5bdc2f005c13adf7b7af70797ed59beaf1
parent244c378e243e3649efc99fe96ec9f123bbe9ffbc
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.
src/include/catalog/pg_proc.h