]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Clear 'xid' in dummy async notify entries written to fill up pages
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Nov 2025 19:19:03 +0000 (21:19 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Nov 2025 19:27:02 +0000 (21:27 +0200)
commitd80d5f09950281c6b852f8d121955bfa182ae539
tree6e76850d87fa2f6a867592880a364ea62eb1671c
parentc2682810ab7d7127b99b4ce0db73d5db28a67c3f
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
src/backend/commands/async.c