Skip to content

Commit ed70d10

Browse files
committed
WIP2
1 parent cd2caf7 commit ed70d10

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

t/expected/wal_encrypt.out

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,27 @@ SHOW pg_tde.wal_encrypt;
7979
(1 row)
8080

8181
INSERT INTO test_wal (k) VALUES (7), (8);
82-
SELECT data FROM pg_logical_slot_get_changes('tde_slot', NULL, NULL);
82+
SELECT data FROM pg_logical_slot_get_changes('tde_slot', NULL, NULL, 'include-xids', '0');
8383
data
8484
-----------------------------------------------------------
85-
BEGIN 739
86-
COMMIT 739
87-
BEGIN 740
85+
BEGIN
86+
COMMIT
87+
BEGIN
8888
table public.test_wal: INSERT: id[integer]:1 k[integer]:1
8989
table public.test_wal: INSERT: id[integer]:2 k[integer]:2
90-
COMMIT 740
91-
BEGIN 741
90+
COMMIT
91+
BEGIN
9292
table public.test_wal: INSERT: id[integer]:3 k[integer]:3
9393
table public.test_wal: INSERT: id[integer]:4 k[integer]:4
94-
COMMIT 741
95-
BEGIN 742
94+
COMMIT
95+
BEGIN
9696
table public.test_wal: INSERT: id[integer]:5 k[integer]:5
9797
table public.test_wal: INSERT: id[integer]:6 k[integer]:6
98-
COMMIT 742
99-
BEGIN 743
98+
COMMIT
99+
BEGIN
100100
table public.test_wal: INSERT: id[integer]:7 k[integer]:7
101101
table public.test_wal: INSERT: id[integer]:8 k[integer]:8
102-
COMMIT 743
102+
COMMIT
103103
(18 rows)
104104

105105
SELECT pg_drop_replication_slot('tde_slot');

t/wal_encrypt.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
PGTDE::psql($node, 'postgres', 'INSERT INTO test_wal (k) VALUES (7), (8);');
9191

9292
PGTDE::psql($node, 'postgres',
93-
"SELECT data FROM pg_logical_slot_get_changes('tde_slot', NULL, NULL);");
93+
"SELECT data FROM pg_logical_slot_get_changes('tde_slot', NULL, NULL, 'include-xids', '0');"
94+
);
9495

9596
PGTDE::psql($node, 'postgres',
9697
"SELECT pg_drop_replication_slot('tde_slot');");

0 commit comments

Comments
 (0)