mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Mark consume_xids test functions VOLATILE and PARALLEL UNSAFE
Both functions advance the transaction ID, which modifies the system state. Thus, they should be marked as VOLATILE. Additionally, they call the AssignTransactionId function, which cannot be invoked in parallel mode, so they should be marked as PARALLEL UNSAFE. Author: Yushi Ogiwara <btogiwarayuushi@oss.nttdata.com> Discussion: https://www.postgresql.org/message-id/18f01e4fd46448f88c7a1363050a9955@oss.nttdata.com
This commit is contained in:
parent
682512dca8
commit
add77755ce
@ -4,9 +4,9 @@
|
||||
\echo Use "CREATE EXTENSION xid_wraparound" to load this file. \quit
|
||||
|
||||
CREATE FUNCTION consume_xids(nxids bigint)
|
||||
RETURNS xid8 IMMUTABLE PARALLEL SAFE STRICT
|
||||
RETURNS xid8 VOLATILE PARALLEL UNSAFE STRICT
|
||||
AS 'MODULE_PATHNAME' LANGUAGE C;
|
||||
|
||||
CREATE FUNCTION consume_xids_until(targetxid xid8)
|
||||
RETURNS xid8 IMMUTABLE PARALLEL SAFE STRICT
|
||||
RETURNS xid8 VOLATILE PARALLEL UNSAFE STRICT
|
||||
AS 'MODULE_PATHNAME' LANGUAGE C;
|
||||
|
Loading…
x
Reference in New Issue
Block a user