diff --git a/src/test/regress/expected/hs_standby_allowed.out b/src/test/regress/expected/hs_standby_allowed.out
index c26c9822f63555c2ad4bf3b9b40b8440ab271fcb..487b30e1eee38a35a6184a59fa4b268b2bf081d2 100644
--- a/src/test/regress/expected/hs_standby_allowed.out
+++ b/src/test/regress/expected/hs_standby_allowed.out
@@ -26,7 +26,7 @@ COPY hs1 TO '/tmp/copy_test';
 \! cat /tmp/copy_test
 1
 -- Access sequence directly
-select min_value as sequence_min_value from hsseq;
+select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq';
  sequence_min_value 
 --------------------
                   1
diff --git a/src/test/regress/sql/hs_standby_allowed.sql b/src/test/regress/sql/hs_standby_allowed.sql
index 7fc22148cbc986067c9d9a2d7090b62d2c72cb17..26fb65cb49267f0dedee517fd18d473cf0fd45f4 100644
--- a/src/test/regress/sql/hs_standby_allowed.sql
+++ b/src/test/regress/sql/hs_standby_allowed.sql
@@ -16,7 +16,7 @@ COPY hs1 TO '/tmp/copy_test';
 \! cat /tmp/copy_test
 
 -- Access sequence directly
-select min_value as sequence_min_value from hsseq;
+select min_value as sequence_min_value from pg_sequences where sequencename = 'hsseq';
 
 -- Transactions