Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84f1bf4

Browse files
committed
Clear 'xid' in dummy async notify entries written to fill up pages
Before we started to freeze async notify entries (commit8eeb4a0),no one looked at the 'xid' on an entry with invalid 'dboid'. But nowwe might actually need to freeze it later. Initialize them withInvalidTransactionId to begin with, to avoid that work later.Álvaro pointed this out in review of commit8eeb4a0, but I forgotto include this change there.Author: Álvaro Herrera <alvherre@kurilemu.de>Discussion:https://www.postgresql.org/message-id/202511071410.52ll56eyixx7@alvherre.pgsqlBackpatch-through: 14
1 parentc2e58c0 commit84f1bf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/commands/async.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,7 @@ asyncQueueAddEntries(ListCell *nextNotify)
14841484
*/
14851485
qe.length=QUEUE_PAGESIZE-offset;
14861486
qe.dboid=InvalidOid;
1487+
qe.xid=InvalidTransactionId;
14871488
qe.data[0]='\0';/* empty channel */
14881489
qe.data[1]='\0';/* empty payload */
14891490
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp