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

Commit7fa7bf1

Browse files
committed
Use non-conflicting table names in new regression test case.
Commit587cda3 added a test to updatable_views.sql that createdtables named the same as tables used by the concurrent inherit.sqlscript. Unsurprisingly, this results in random failures.Pick different names.Per buildfarm.
1 parentda4d1c0 commit7fa7bf1

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

‎src/test/regress/expected/updatable_views.out

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,26 +2368,26 @@ DETAIL: Failing row contains (-1, invalid).
23682368
DROP VIEW v1;
23692369
DROP TABLE t1;
23702370
-- check that an auto-updatable view on a partitioned table works correctly
2371-
create tablep (a int, b int) partition by range (a, b);
2372-
create tablep1 (b int not null, a int not null) partition by range (b);
2373-
create tablep11 (likep1);
2374-
alter tablep11 drop a;
2375-
alter tablep11 add a int;
2376-
alter tablep11 drop a;
2377-
alter tablep11 add a int not null;
2378-
alter tablep1 attach partitionp11 for values from (2) to (5);
2379-
alter tablep attach partitionp1 for values from (1, 2) to (1, 10);
2380-
create viewpv as select * fromp;
2381-
insert intopv values (1, 2);
2382-
select tableoid::regclass, * fromp;
2371+
create tablept (a int, b int) partition by range (a, b);
2372+
create tablept1 (b int not null, a int not null) partition by range (b);
2373+
create tablept11 (likept1);
2374+
alter tablept11 drop a;
2375+
alter tablept11 add a int;
2376+
alter tablept11 drop a;
2377+
alter tablept11 add a int not null;
2378+
alter tablept1 attach partitionpt11 for values from (2) to (5);
2379+
alter tablept attach partitionpt1 for values from (1, 2) to (1, 10);
2380+
create viewptv as select * frompt;
2381+
insert intoptv values (1, 2);
2382+
select tableoid::regclass, * frompt;
23832383
tableoid | a | b
23842384
----------+---+---
2385-
p11 | 1 | 2
2385+
pt11 | 1 | 2
23862386
(1 row)
23872387

2388-
create viewpv_wco as select * fromp where a = 0 with check option;
2389-
insert intopv_wco values (1, 2);
2390-
ERROR: new row violates check option for view "pv_wco"
2388+
create viewptv_wco as select * frompt where a = 0 with check option;
2389+
insert intoptv_wco values (1, 2);
2390+
ERROR: new row violates check option for view "ptv_wco"
23912391
DETAIL: Failing row contains (2, 1).
2392-
drop viewpv, pv_wco;
2393-
drop tablep, p1, p11;
2392+
drop viewptv, ptv_wco;
2393+
drop tablept, pt1, pt11;

‎src/test/regress/sql/updatable_views.sql

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,20 +1114,20 @@ DROP VIEW v1;
11141114
DROPTABLE t1;
11151115

11161116
-- check that an auto-updatable view on a partitioned table works correctly
1117-
createtablep (aint, bint) partition by range (a, b);
1118-
createtablep1 (bintnot null, aintnot null) partition by range (b);
1119-
createtablep11 (likep1);
1120-
altertablep11 drop a;
1121-
altertablep11 add aint;
1122-
altertablep11 drop a;
1123-
altertablep11 add aintnot null;
1124-
altertablep1 attach partitionp11 forvaluesfrom (2) to (5);
1125-
altertablep attach partitionp1 forvaluesfrom (1,2) to (1,10);
1126-
1127-
createviewpvasselect*fromp;
1128-
insert intopvvalues (1,2);
1129-
select tableoid::regclass,*fromp;
1130-
createviewpv_wcoasselect*frompwhere a=0 withcheck option;
1131-
insert intopv_wcovalues (1,2);
1132-
dropviewpv, pv_wco;
1133-
droptablep, p1, p11;
1117+
createtablept (aint, bint) partition by range (a, b);
1118+
createtablept1 (bintnot null, aintnot null) partition by range (b);
1119+
createtablept11 (likept1);
1120+
altertablept11 drop a;
1121+
altertablept11 add aint;
1122+
altertablept11 drop a;
1123+
altertablept11 add aintnot null;
1124+
altertablept1 attach partitionpt11 forvaluesfrom (2) to (5);
1125+
altertablept attach partitionpt1 forvaluesfrom (1,2) to (1,10);
1126+
1127+
createviewptvasselect*frompt;
1128+
insert intoptvvalues (1,2);
1129+
select tableoid::regclass,*frompt;
1130+
createviewptv_wcoasselect*fromptwhere a=0 withcheck option;
1131+
insert intoptv_wcovalues (1,2);
1132+
dropviewptv, ptv_wco;
1133+
droptablept, pt1, pt11;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp