-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "source-postgres-batch: Fix XID wraparound behavior"
This reverts commit e57acbc and un-fixes #2383 Turns out the particular function we're using here doesn't work on a standby replica, which is...bad.
- Loading branch information
1 parent
d6cd897
commit ca52be5
Showing
3 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
source-postgres-batch/.snapshots/TestQueryTemplates-XMinFirstQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
SELECT xmin AS txid, * FROM "test"."foobar" | ||
WHERE xmin::text::bigint >= 3 | ||
AND (((txid_current() - xmin::text::bigint)<<32)>>32) >= 0 | ||
ORDER BY xmin::text::bigint; | ||
SELECT xmin AS txid, * FROM "test"."foobar" ORDER BY xmin::text::bigint; |
4 changes: 1 addition & 3 deletions
4
source-postgres-batch/.snapshots/TestQueryTemplates-XMinSubsequentQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
SELECT xmin AS txid, * FROM "test"."foobar" | ||
WHERE xmin::text::bigint >= 3 | ||
AND (((txid_current() - xmin::text::bigint)<<32)>>32) >= 0 | ||
AND (((xmin::text::bigint - $1::bigint)<<32)>>32) > 0 | ||
WHERE (((xmin::text::bigint - $1::bigint)<<32)>>32) > 0 AND xmin::text::bigint >= 3 | ||
ORDER BY (((xmin::text::bigint - $1::bigint)<<32)>>32); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters