diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-07-12 21:25:36 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-07-12 21:25:36 +0900 |
commit | ea3e15d1691ec4cadc67f160cc91c7f237a705ae (patch) | |
tree | a3436477ca3074cefae68d7d68e20a2232148c66 /src/test/modules/commit_ts/sql/commit_timestamp.sql | |
parent | b1e48bbe64a411666bb1928b9741e112e267836d (diff) | |
download | postgresql-ea3e15d1691ec4cadc67f160cc91c7f237a705ae.tar.gz |
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
Diffstat (limited to 'src/test/modules/commit_ts/sql/commit_timestamp.sql')
-rw-r--r-- | src/test/modules/commit_ts/sql/commit_timestamp.sql | 6 |
1 files changed, 3 insertions, 3 deletions
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'); |