From: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
---|---|
To: | Yushi Ogiwara <btogiwarayuushi(at)oss(dot)nttdata(dot)com>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Fix attributes of consume_xids and consume_xids_until |
Date: | 2024-10-11 08:10:17 |
Message-ID: | f4329335-f208-42e0-9a5c-52903685915f@iki.fi |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 11/10/2024 09:59, Yushi Ogiwara wrote:
> Hi,
>
> I found the attributes of the functions consume_xids and
> consume_xids_until are incorrectly specified:
>
> - Both functions are marked as IMMUTABLE attribute, but they advance the
> transaction ID, which modifies the system state. Thus, they should be
> marked as VOLATILE.
> - Additionally, both functions are marked as PARALLEL SAFE. Since these
> functions call the AssignTransactionId function, which cannot be invoked
> in parallel mode, they should be marked as PARALLEL UNSAFE.
>
> This patch fixes the attributes of consume_xids and consume_xids_until
> accordingly.
Applied, thanks!
I didn't backpatch this because it's a test module that shouldn't be
installed in production. And because we don't bother with upgrade
scripts for these test modules, it could get confusing.
--
Heikki Linnakangas
Neon (https://neon.tech)
From | Date | Subject | |
---|---|---|---|
Next Message | Bertrand Drouvot | 2024-10-11 08:18:58 | Re: BF mamba failure |
Previous Message | Kouber Saparev | 2024-10-11 08:07:29 | Re: BF mamba failure |