Skip to content

Commit 91a6d84

Browse files
committed
Stabilize primary key test
1 parent 98ebc28 commit 91a6d84

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

expected/primary_key.out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,11 @@ ALTER TABLE public.pk_users DROP CONSTRAINT pk_users_pkey,
221221
Indexes:
222222
"pk_users_pkey" PRIMARY KEY, btree (id)
223223

224-
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), pid) FROM pg_stat_replication;
224+
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), 0);
225225
pg_xlog_wait_remote_apply
226226
---------------------------
227-
(0 rows)
227+
228+
(1 row)
228229

229230
\c :subscriber_dsn
230231
\d+ pk_users;

sql/primary_key.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ALTER TABLE public.pk_users DROP CONSTRAINT pk_users_pkey,
9292
$$);
9393

9494
\d+ pk_users;
95-
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), pid) FROM pg_stat_replication;
95+
SELECT pg_xlog_wait_remote_apply(pg_current_xlog_location(), 0);
9696

9797
\c :subscriber_dsn
9898
\d+ pk_users;

0 commit comments

Comments
 (0)