Clear 'xid' in dummy async notify entries written to fill up pages

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: d80d5f09950281c6b852f8d121955bfa182ae539
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2025-11-12T19:27:02Z
Releases: 17.8
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

Files

PathChange+/−
src/backend/commands/async.c modified +1 −0

Discussion