pgsql: Mark some functions parallel-unsafe. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Mark some functions parallel-unsafe.
Date
Msg-id E1bDD0V-00085J-Rz@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Mark some functions parallel-unsafe.

currtid() and currtid2() call GetLatestSnapshot(), which fails in
parallel mode.  pg_export_snapshot() calls ExportSnapshot() which
attempts to assign an XID for the current transaction if it does not
already have one; that, too, will fail in parallel mode.

Andreas Seltenreich

Branch
------
master

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

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Force idle_in_transaction_session_timeout off in pg_dump and aut
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <