Browse Source

Follow the rule that regression-test-created roles are named "regress_xxx".

Commit 1c5d9270e had not gotten the word about this.  (For previous
context, see 18555b132.)
REL_12_STABLE
Tom Lane 2 weeks ago
parent
commit
c360477d2e
2 changed files with 65 additions and 65 deletions
  1. 61
    61
      src/test/regress/expected/psql.out
  2. 4
    4
      src/test/regress/sql/psql.sql

+ 61
- 61
src/test/regress/expected/psql.out View File

@@ -4599,9 +4599,9 @@ last error message: division by zero
4599 4599
 last error code: 22012
4600 4600
 \unset FETCH_COUNT
4601 4601
 create schema testpart;
4602
-create role testrole_partitioning;
4603
-alter schema testpart owner to testrole_partitioning;
4604
-set role to testrole_partitioning;
4602
+create role regress_partitioning_role;
4603
+alter schema testpart owner to regress_partitioning_role;
4604
+set role to regress_partitioning_role;
4605 4605
 -- run test inside own schema and hide other partitions
4606 4606
 set search_path to testpart;
4607 4607
 create table testtable_apple(logdate date);
@@ -4614,25 +4614,25 @@ create index testpart_apple_index on testpart_apple(logdate);
4614 4614
 create index testpart_orange_index on testpart_orange(logdate);
4615 4615
 -- only partition related object should be displayed
4616 4616
 \dP test*apple*
4617
-                                       List of partitioned relations
4618
-  Schema  |         Name         |         Owner         |       Type        | Parent name |     Table      
4619
-----------+----------------------+-----------------------+-------------------+-------------+----------------
4620
- testpart | testpart_apple       | testrole_partitioning | partitioned table |             | 
4621
- testpart | testpart_apple_index | testrole_partitioning | partitioned index |             | testpart_apple
4617
+                                         List of partitioned relations
4618
+  Schema  |         Name         |           Owner           |       Type        | Parent name |     Table      
4619
+----------+----------------------+---------------------------+-------------------+-------------+----------------
4620
+ testpart | testpart_apple       | regress_partitioning_role | partitioned table |             | 
4621
+ testpart | testpart_apple_index | regress_partitioning_role | partitioned index |             | testpart_apple
4622 4622
 (2 rows)
4623 4623
 
4624 4624
 \dPt test*apple*
4625
-                   List of partitioned tables
4626
-  Schema  |      Name      |         Owner         | Parent name 
4627
-----------+----------------+-----------------------+-------------
4628
- testpart | testpart_apple | testrole_partitioning | 
4625
+                     List of partitioned tables
4626
+  Schema  |      Name      |           Owner           | Parent name 
4627
+----------+----------------+---------------------------+-------------
4628
+ testpart | testpart_apple | regress_partitioning_role | 
4629 4629
 (1 row)
4630 4630
 
4631 4631
 \dPi test*apple*
4632
-                              List of partitioned indexes
4633
-  Schema  |         Name         |         Owner         | Parent name |     Table      
4634
-----------+----------------------+-----------------------+-------------+----------------
4635
- testpart | testpart_apple_index | testrole_partitioning |             | testpart_apple
4632
+                                List of partitioned indexes
4633
+  Schema  |         Name         |           Owner           | Parent name |     Table      
4634
+----------+----------------------+---------------------------+-------------+----------------
4635
+ testpart | testpart_apple_index | regress_partitioning_role |             | testpart_apple
4636 4636
 (1 row)
4637 4637
 
4638 4638
 drop table testtable_apple;
@@ -4657,75 +4657,75 @@ create table child_35_40 partition of child_30_40
4657 4657
    for values from (35) to (40);
4658 4658
 insert into parent_tab values (generate_series(30,39));
4659 4659
 \dPt
4660
-          List of partitioned tables
4661
-  Schema  |    Name    |         Owner         
4662
-----------+------------+-----------------------
4663
- testpart | parent_tab | testrole_partitioning
4660
+            List of partitioned tables
4661
+  Schema  |    Name    |           Owner           
4662
+----------+------------+---------------------------
4663
+ testpart | parent_tab | regress_partitioning_role
4664 4664
 (1 row)
4665 4665
 
4666 4666
 \dPi
4667
-                 List of partitioned indexes
4668
-  Schema  |     Name     |         Owner         |   Table    
4669
-----------+--------------+-----------------------+------------
4670
- testpart | parent_index | testrole_partitioning | parent_tab
4667
+                   List of partitioned indexes
4668
+  Schema  |     Name     |           Owner           |   Table    
4669
+----------+--------------+---------------------------+------------
4670
+ testpart | parent_index | regress_partitioning_role | parent_tab
4671 4671
 (1 row)
4672 4672
 
4673 4673
 \dP testpart.*
4674
-                                     List of partitioned relations
4675
-  Schema  |        Name        |         Owner         |       Type        | Parent name  |    Table    
4676
-----------+--------------------+-----------------------+-------------------+--------------+-------------
4677
- testpart | parent_tab         | testrole_partitioning | partitioned table |              | 
4678
- testpart | child_30_40        | testrole_partitioning | partitioned table | parent_tab   | 
4679
- testpart | parent_index       | testrole_partitioning | partitioned index |              | parent_tab
4680
- testpart | child_30_40_id_idx | testrole_partitioning | partitioned index | parent_index | child_30_40
4674
+                                       List of partitioned relations
4675
+  Schema  |        Name        |           Owner           |       Type        | Parent name  |    Table    
4676
+----------+--------------------+---------------------------+-------------------+--------------+-------------
4677
+ testpart | parent_tab         | regress_partitioning_role | partitioned table |              | 
4678
+ testpart | child_30_40        | regress_partitioning_role | partitioned table | parent_tab   | 
4679
+ testpart | parent_index       | regress_partitioning_role | partitioned index |              | parent_tab
4680
+ testpart | child_30_40_id_idx | regress_partitioning_role | partitioned index | parent_index | child_30_40
4681 4681
 (4 rows)
4682 4682
 
4683 4683
 \dP
4684
-                          List of partitioned relations
4685
-  Schema  |     Name     |         Owner         |       Type        |   Table    
4686
-----------+--------------+-----------------------+-------------------+------------
4687
- testpart | parent_tab   | testrole_partitioning | partitioned table | 
4688
- testpart | parent_index | testrole_partitioning | partitioned index | parent_tab
4684
+                            List of partitioned relations
4685
+  Schema  |     Name     |           Owner           |       Type        |   Table    
4686
+----------+--------------+---------------------------+-------------------+------------
4687
+ testpart | parent_tab   | regress_partitioning_role | partitioned table | 
4688
+ testpart | parent_index | regress_partitioning_role | partitioned index | parent_tab
4689 4689
 (2 rows)
4690 4690
 
4691 4691
 \dPtn
4692
-                  List of partitioned tables
4693
-  Schema  |    Name     |         Owner         | Parent name 
4694
-----------+-------------+-----------------------+-------------
4695
- testpart | parent_tab  | testrole_partitioning | 
4696
- testpart | child_30_40 | testrole_partitioning | parent_tab
4692
+                    List of partitioned tables
4693
+  Schema  |    Name     |           Owner           | Parent name 
4694
+----------+-------------+---------------------------+-------------
4695
+ testpart | parent_tab  | regress_partitioning_role | 
4696
+ testpart | child_30_40 | regress_partitioning_role | parent_tab
4697 4697
 (2 rows)
4698 4698
 
4699 4699
 \dPin
4700
-                            List of partitioned indexes
4701
-  Schema  |        Name        |         Owner         | Parent name  |    Table    
4702
-----------+--------------------+-----------------------+--------------+-------------
4703
- testpart | parent_index       | testrole_partitioning |              | parent_tab
4704
- testpart | child_30_40_id_idx | testrole_partitioning | parent_index | child_30_40
4700
+                              List of partitioned indexes
4701
+  Schema  |        Name        |           Owner           | Parent name  |    Table    
4702
+----------+--------------------+---------------------------+--------------+-------------
4703
+ testpart | parent_index       | regress_partitioning_role |              | parent_tab
4704
+ testpart | child_30_40_id_idx | regress_partitioning_role | parent_index | child_30_40
4705 4705
 (2 rows)
4706 4706
 
4707 4707
 \dPn
4708
-                                     List of partitioned relations
4709
-  Schema  |        Name        |         Owner         |       Type        | Parent name  |    Table    
4710
-----------+--------------------+-----------------------+-------------------+--------------+-------------
4711
- testpart | parent_tab         | testrole_partitioning | partitioned table |              | 
4712
- testpart | child_30_40        | testrole_partitioning | partitioned table | parent_tab   | 
4713
- testpart | parent_index       | testrole_partitioning | partitioned index |              | parent_tab
4714
- testpart | child_30_40_id_idx | testrole_partitioning | partitioned index | parent_index | child_30_40
4708
+                                       List of partitioned relations
4709
+  Schema  |        Name        |           Owner           |       Type        | Parent name  |    Table    
4710
+----------+--------------------+---------------------------+-------------------+--------------+-------------
4711
+ testpart | parent_tab         | regress_partitioning_role | partitioned table |              | 
4712
+ testpart | child_30_40        | regress_partitioning_role | partitioned table | parent_tab   | 
4713
+ testpart | parent_index       | regress_partitioning_role | partitioned index |              | parent_tab
4714
+ testpart | child_30_40_id_idx | regress_partitioning_role | partitioned index | parent_index | child_30_40
4715 4715
 (4 rows)
4716 4716
 
4717 4717
 \dPn testpart.*
4718
-                                     List of partitioned relations
4719
-  Schema  |        Name        |         Owner         |       Type        | Parent name  |    Table    
4720
-----------+--------------------+-----------------------+-------------------+--------------+-------------
4721
- testpart | parent_tab         | testrole_partitioning | partitioned table |              | 
4722
- testpart | child_30_40        | testrole_partitioning | partitioned table | parent_tab   | 
4723
- testpart | parent_index       | testrole_partitioning | partitioned index |              | parent_tab
4724
- testpart | child_30_40_id_idx | testrole_partitioning | partitioned index | parent_index | child_30_40
4718
+                                       List of partitioned relations
4719
+  Schema  |        Name        |           Owner           |       Type        | Parent name  |    Table    
4720
+----------+--------------------+---------------------------+-------------------+--------------+-------------
4721
+ testpart | parent_tab         | regress_partitioning_role | partitioned table |              | 
4722
+ testpart | child_30_40        | regress_partitioning_role | partitioned table | parent_tab   | 
4723
+ testpart | parent_index       | regress_partitioning_role | partitioned index |              | parent_tab
4724
+ testpart | child_30_40_id_idx | regress_partitioning_role | partitioned index | parent_index | child_30_40
4725 4725
 (4 rows)
4726 4726
 
4727 4727
 drop table parent_tab cascade;
4728 4728
 drop schema testpart;
4729 4729
 set search_path to default;
4730 4730
 set role to default;
4731
-drop role testrole_partitioning;
4731
+drop role regress_partitioning_role;

+ 4
- 4
src/test/regress/sql/psql.sql View File

@@ -1048,11 +1048,11 @@ select 1/(15-unique2) from tenk1 order by unique2 limit 19;
1048 1048
 \unset FETCH_COUNT
1049 1049
 
1050 1050
 create schema testpart;
1051
-create role testrole_partitioning;
1051
+create role regress_partitioning_role;
1052 1052
 
1053
-alter schema testpart owner to testrole_partitioning;
1053
+alter schema testpart owner to regress_partitioning_role;
1054 1054
 
1055
-set role to testrole_partitioning;
1055
+set role to regress_partitioning_role;
1056 1056
 
1057 1057
 -- run test inside own schema and hide other partitions
1058 1058
 set search_path to testpart;
@@ -1114,4 +1114,4 @@ drop schema testpart;
1114 1114
 set search_path to default;
1115 1115
 
1116 1116
 set role to default;
1117
-drop role testrole_partitioning;
1117
+drop role regress_partitioning_role;

Loading…
Cancel
Save