Skip to content

Commit 4090ff2

Browse files
committed
Rename the role in stats_ext to have regress_ prefix
Commit 5be8ce8 added a new role to the stats_ext regression suite, but the role name did not start with regress_ causing failures when running with ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS. Fixed by renaming the role to start with the expected regress_ prefix. Backpatch-through: 10, same as the new regression test Discussion: https://postgr.es/m/1F238937-7CC2-4703-A1B1-6DC225B8978A%40enterprisedb.com
1 parent a371a5b commit 4090ff2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/test/regress/expected/stats_ext.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ DROP TABLE ext_stats_test;
6868
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
6969
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
7070
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
71-
CREATE ROLE temp_role;
72-
SET SESSION AUTHORIZATION temp_role;
71+
CREATE ROLE regress_stats_ext;
72+
SET SESSION AUTHORIZATION regress_stats_ext;
7373
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
7474
ERROR: must be owner of statistics object ab1_a_b_stats
7575
DROP STATISTICS ab1_a_b_stats;
7676
ERROR: must be owner of statistics object ab1_a_b_stats
7777
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
7878
ERROR: must be owner of statistics object ab1_a_b_stats
7979
RESET SESSION AUTHORIZATION;
80-
DROP ROLE temp_role;
80+
DROP ROLE regress_stats_ext;
8181
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
8282
NOTICE: statistics object "ab1_a_b_stats" already exists, skipping
8383
DROP STATISTICS ab1_a_b_stats;

src/test/regress/sql/stats_ext.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ DROP TABLE ext_stats_test;
4949
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
5050
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
5151
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
52-
CREATE ROLE temp_role;
53-
SET SESSION AUTHORIZATION temp_role;
52+
CREATE ROLE regress_stats_ext;
53+
SET SESSION AUTHORIZATION regress_stats_ext;
5454
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
5555
DROP STATISTICS ab1_a_b_stats;
5656
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
5757
RESET SESSION AUTHORIZATION;
58-
DROP ROLE temp_role;
58+
DROP ROLE regress_stats_ext;
5959

6060
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
6161
DROP STATISTICS ab1_a_b_stats;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy