mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-04 07:57:20 +02:00
Rename the role in stats_ext to have regress_ prefix
Commit 5be8ce82e8
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
This commit is contained in:
parent
1fe1a04af8
commit
c8213aa949
@ -55,8 +55,8 @@ DROP TABLE ext_stats_test;
|
|||||||
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
|
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
|
||||||
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
||||||
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
|
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
|
||||||
CREATE ROLE temp_role;
|
CREATE ROLE regress_stats_ext;
|
||||||
SET SESSION AUTHORIZATION temp_role;
|
SET SESSION AUTHORIZATION regress_stats_ext;
|
||||||
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
|
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
|
||||||
ERROR: must be owner of statistics object ab1_a_b_stats
|
ERROR: must be owner of statistics object ab1_a_b_stats
|
||||||
DROP STATISTICS ab1_a_b_stats;
|
DROP STATISTICS ab1_a_b_stats;
|
||||||
@ -64,7 +64,7 @@ ERROR: must be owner of statistics object ab1_a_b_stats
|
|||||||
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
|
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
|
||||||
ERROR: must be owner of statistics object ab1_a_b_stats
|
ERROR: must be owner of statistics object ab1_a_b_stats
|
||||||
RESET SESSION AUTHORIZATION;
|
RESET SESSION AUTHORIZATION;
|
||||||
DROP ROLE temp_role;
|
DROP ROLE regress_stats_ext;
|
||||||
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
||||||
NOTICE: statistics object "ab1_a_b_stats" already exists, skipping
|
NOTICE: statistics object "ab1_a_b_stats" already exists, skipping
|
||||||
DROP STATISTICS ab1_a_b_stats;
|
DROP STATISTICS ab1_a_b_stats;
|
||||||
|
@ -44,13 +44,13 @@ DROP TABLE ext_stats_test;
|
|||||||
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
|
CREATE TABLE ab1 (a INTEGER, b INTEGER, c INTEGER);
|
||||||
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
||||||
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
|
COMMENT ON STATISTICS ab1_a_b_stats IS 'new comment';
|
||||||
CREATE ROLE temp_role;
|
CREATE ROLE regress_stats_ext;
|
||||||
SET SESSION AUTHORIZATION temp_role;
|
SET SESSION AUTHORIZATION regress_stats_ext;
|
||||||
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
|
COMMENT ON STATISTICS ab1_a_b_stats IS 'changed comment';
|
||||||
DROP STATISTICS ab1_a_b_stats;
|
DROP STATISTICS ab1_a_b_stats;
|
||||||
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
|
ALTER STATISTICS ab1_a_b_stats RENAME TO ab1_a_b_stats_new;
|
||||||
RESET SESSION AUTHORIZATION;
|
RESET SESSION AUTHORIZATION;
|
||||||
DROP ROLE temp_role;
|
DROP ROLE regress_stats_ext;
|
||||||
|
|
||||||
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
CREATE STATISTICS IF NOT EXISTS ab1_a_b_stats ON a, b FROM ab1;
|
||||||
DROP STATISTICS ab1_a_b_stats;
|
DROP STATISTICS ab1_a_b_stats;
|
||||||
|
Loading…
Reference in New Issue
Block a user