Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit628bc9d

Browse files
committed
Rename the role in stats_ext to have regress_ prefix
Commit5be8ce8 added a new role to the stats_ext regression suite,but the role name did not start with regress_ causing failures whenrunning with ENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS. Fixed byrenaming the role to start with the expected regress_ prefix.Backpatch-through: 10, same as the new regression testDiscussion:https://postgr.es/m/1F238937-7CC2-4703-A1B1-6DC225B8978A%40enterprisedb.com
1 parent5be8ce8 commit628bc9d

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 ROLEtemp_role;
72-
SET SESSION AUTHORIZATIONtemp_role;
71+
CREATE ROLEregress_stats_ext;
72+
SET SESSION AUTHORIZATIONregress_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 ROLEtemp_role;
80+
DROP ROLEregress_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
CREATETABLEab1 (aINTEGER, bINTEGER, cINTEGER);
5050
CREATE STATISTICS IF NOT EXISTS ab1_a_b_statsON a, bFROM ab1;
5151
COMMENTON STATISTICS ab1_a_b_stats IS'new comment';
52-
CREATE ROLEtemp_role;
53-
SET SESSION AUTHORIZATIONtemp_role;
52+
CREATE ROLEregress_stats_ext;
53+
SET SESSION AUTHORIZATIONregress_stats_ext;
5454
COMMENTON 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 ROLEtemp_role;
58+
DROP ROLEregress_stats_ext;
5959

6060
CREATE STATISTICS IF NOT EXISTS ab1_a_b_statsON a, bFROM ab1;
6161
DROP STATISTICS ab1_a_b_stats;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp