pgsql: Mark consume_xids test functions VOLATILE and PARALLEL UNSAFE

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Mark consume_xids test functions VOLATILE and PARALLEL UNSAFE
Date: 2024-10-11 08:10:11
Message-ID: E1szAiy-000I0V-8s@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)oss(dot)nttdata(dot)com>
Discussion: https://www.postgresql.org/message-id/18f01e4fd46448f88c7a1363050a9955@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/add77755ce851fae2f72be4b9c56a606f9362895

Modified Files
--------------
src/test/modules/xid_wraparound/xid_wraparound--1.0.sql | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2024-10-11 16:02:54 pgsql: Add pg_ls_summariesdir().
Previous Message Daniel Gustafsson 2024-10-11 08:07:42 pgsql: Fix typo in connection limits test