pgsql: Fix volatility marking of commit timestamp functions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема pgsql: Fix volatility marking of commit timestamp functions
Дата
Msg-id E1ZKsSb-0008Vh-VF@gemulon.postgresql.org
обсуждение исходный текст
Список 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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/71b66e78e432d99325db6356f056cb3f03b3d7b7

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix broken assertion in BRIN code
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Fix volatility marking of commit timestamp functions