Skip to content

Commit 8f136af

Browse files
committed
Use correct datatype for xmin variables in slot.c
Two variables storing a slot's effective_xmin and effective_catalog_xmin were saved as XLogRecPtr, which is incorrect as these should be TransactionIds. Oversight in 818fefd. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACVPSB74mrDTFezz-LV3Oi6F3SN71QA0oUHvndzi5dwTNg@mail.gmail.com Backpatch-through: 16
1 parent 810f64a commit 8f136af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/slot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,8 +1545,8 @@ InvalidatePossiblyObsoleteSlot(ReplicationSlotInvalidationCause cause,
15451545
int last_signaled_pid = 0;
15461546
bool released_lock = false;
15471547
bool terminated = false;
1548-
XLogRecPtr initial_effective_xmin = InvalidXLogRecPtr;
1549-
XLogRecPtr initial_catalog_effective_xmin = InvalidXLogRecPtr;
1548+
TransactionId initial_effective_xmin = InvalidTransactionId;
1549+
TransactionId initial_catalog_effective_xmin = InvalidTransactionId;
15501550
XLogRecPtr initial_restart_lsn = InvalidXLogRecPtr;
15511551
ReplicationSlotInvalidationCause invalidation_cause_prev PG_USED_FOR_ASSERTS_ONLY = RS_INVAL_NONE;
15521552

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy