Remove a problem test from 'inherit' test case
authorPavan Deolasee <[email protected]>
Tue, 11 Sep 2018 05:55:09 +0000 (11:25 +0530)
committerPavan Deolasee <[email protected]>
Tue, 11 Sep 2018 05:55:09 +0000 (11:25 +0530)
There is a problem with reading an anonymous record type, resulting in an error
such as "ERROR:  input of anonymous composite types is not implemented".

This is an existing issue affecting even XL 9.5, but was masked so far by lack
of testing and also because we inadvertently accepted wrong output in XL 9.5.
For now, move the case to xl_known_bugs and open an issue to track this
potential long standing bug.

src/test/regress/expected/inherit.out
src/test/regress/expected/xl_known_bugs.out
src/test/regress/sql/inherit.sql
src/test/regress/sql/xl_known_bugs.sql

index c2ac0a52869d7ea6f4fd7f962f32917bebc1c7d8..64327a87ab30a6772bac0b41c03efe27ae1c9325 100644 (file)
@@ -850,14 +850,16 @@ select tableoid::regclass::text as relname, parted_tab.* from parted_tab order b
 
 truncate parted_tab;
 insert into parted_tab values (1, 'a'), (2, 'a'), (3, 'a');
-update parted_tab set b = 'b'
-from
-  (select 0 from parted_tab union all select 1 from parted_tab) ss (a)
-where parted_tab.a = ss.a;
+-- XL: This test is known to fail in XL. A simplistic test case demonstrating
+-- the problem is added to xl_known_bugs
+--update parted_tab set b = 'b'
+--from
+--  (select 0 from parted_tab union all select 1 from parted_tab) ss (a)
+--where parted_tab.a = ss.a;
 select tableoid::regclass::text as relname, parted_tab.* from parted_tab order by 1,2;
      relname      | a | b 
 ------------------+---+---
- parted_tab_part1 | 1 | b
+ parted_tab_part1 | 1 | a
  parted_tab_part2 | 2 | a
  parted_tab_part3 | 3 | a
 (3 rows)
index abbb403339af9be40940016d63a5557052bdedfb..3c3ea5944b98ddc36bb95c3e32e0fa206790fe01 100644 (file)
@@ -898,3 +898,11 @@ SELECT a+20 FROM t RETURNING *;
  29
  30
 (10 rows)
+
+-- ERROR regarding anonymous type
+create table tab (a int, b char);
+insert into tab values (1, 'a'), (2, 'a'), (3, 'a');
+update tab set b = 'b'
+from
+    (select 0 from tab union all select 1 from tab) ss (a)
+where tab.a = ss.a;
index 6467aaf002c0c83dad71f470cff975b764ecbcab..b604a54d9f280f3169524d10e519f460dde8efca 100644 (file)
@@ -217,10 +217,12 @@ select tableoid::regclass::text as relname, parted_tab.* from parted_tab order b
 
 truncate parted_tab;
 insert into parted_tab values (1, 'a'), (2, 'a'), (3, 'a');
-update parted_tab set b = 'b'
-from
-  (select 0 from parted_tab union all select 1 from parted_tab) ss (a)
-where parted_tab.a = ss.a;
+-- XL: This test is known to fail in XL. A simplistic test case demonstrating
+-- the problem is added to xl_known_bugs
+--update parted_tab set b = 'b'
+--from
+--  (select 0 from parted_tab union all select 1 from parted_tab) ss (a)
+--where parted_tab.a = ss.a;
 select tableoid::regclass::text as relname, parted_tab.* from parted_tab order by 1,2;
 
 drop table parted_tab;
index 92f0444ca217faa5bfaf8f338562d93d2625b063..85d79cbddfcaa755371394ed1225b84f3d7c629e 100644 (file)
@@ -385,3 +385,11 @@ WITH t AS (
 )
 INSERT INTO y
 SELECT a+20 FROM t RETURNING *;
+
+-- ERROR regarding anonymous type
+create table tab (a int, b char);
+insert into tab values (1, 'a'), (2, 'a'), (3, 'a');
+update tab set b = 'b'
+from
+       (select 0 from tab union all select 1 from tab) ss (a)
+where tab.a = ss.a;