Content-Length: 265638 | pFad | http://github.com/postgrespro/postgres/commit/8f136af3c41c3b7e6474d6dd05238f11059f26f1

C8 Use correct datatype for xmin variables in slot.c · postgrespro/postgres@8f136af · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8f136af3c41c3b7e6474d6dd05238f11059f26f1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy