pgsql: Clear 'xid' in dummy async notify entries written to fill up pag - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Clear 'xid' in dummy async notify entries written to fill up pag
Date
Msg-id E1vJGbZ-006Hn8-0J@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Clear 'xid' in dummy async notify entries written to fill up pages

Before we started to freeze async notify entries (commit 8eeb4a0f7c),
no one looked at the 'xid' on an entry with invalid 'dboid'. But now
we might actually need to freeze it later. Initialize them with
InvalidTransactionId to begin with, to avoid that work later.

Álvaro pointed this out in review of commit 8eeb4a0f7c, but I forgot
to include this change there.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://www.postgresql.org/message-id/202511071410.52ll56eyixx7@alvherre.pgsql
Backpatch-through: 14

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/21a9014cf00ab370d7065a7184c1a087bc228b54

Modified Files
--------------
src/backend/commands/async.c | 1 +
1 file changed, 1 insertion(+)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix remaining race condition with CLOG truncation and LISTEN/NOT
Next
From: Nathan Bossart
Date:
Subject: pgsql: Teach DSM registry to ERROR if attaching to an uninitialized ent