From ea3e15d1691ec4cadc67f160cc91c7f237a705ae Mon Sep 17 00:00:00 2001
From: Michael Paquier <michael@paquier.xyz>
Date: Sun, 12 Jul 2020 21:25:36 +0900
Subject: Fix test failure with -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS

Replication origins created by regression tests should have names
starting with "regress_", and the test introduced in b1e48bb for commit
timestamps did not do that.

Per buildfarm member longfin.

Discussion: https://postgr.es/m/20200712122507.GD21680@paquier.xyz
---
 src/test/modules/commit_ts/sql/commit_timestamp.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/test/modules/commit_ts/sql/commit_timestamp.sql')

diff --git a/src/test/modules/commit_ts/sql/commit_timestamp.sql b/src/test/modules/commit_ts/sql/commit_timestamp.sql
index 4a8a6aa56e..e77dfb2f0a 100644
--- a/src/test/modules/commit_ts/sql/commit_timestamp.sql
+++ b/src/test/modules/commit_ts/sql/commit_timestamp.sql
@@ -42,9 +42,9 @@ SELECT x.timestamp <@ tstzrange('-infinity'::timestamptz, now()) AS ts_in_range,
   FROM pg_xact_commit_timestamp_origin(:'txid_no_origin') x;
 
 -- Test transaction with replication origin
-SELECT pg_replication_origin_create('test_commit_ts: get_origin') != 0
+SELECT pg_replication_origin_create('regress_commit_ts: get_origin') != 0
   AS valid_roident;
-SELECT pg_replication_origin_session_setup('test_commit_ts: get_origin');
+SELECT pg_replication_origin_session_setup('regress_commit_ts: get_origin');
 SELECT txid_current() as txid_with_origin \gset
 SELECT x.timestamp <@ tstzrange('-infinity'::timestamptz, now()) AS ts_in_range, r.roname
   FROM pg_last_committed_xact() x, pg_replication_origin r
@@ -54,4 +54,4 @@ SELECT x.timestamp <@ tstzrange('-infinity'::timestamptz, now()) AS ts_in_range,
   WHERE r.roident = x.roident;
 
 SELECT pg_replication_origin_session_reset();
-SELECT pg_replication_origin_drop('test_commit_ts: get_origin');
+SELECT pg_replication_origin_drop('regress_commit_ts: get_origin');
-- 
cgit v1.2.1

