diff options
author | Abbas | 2011-04-11 19:22:43 +0000 |
---|---|---|
committer | Pavan Deolasee | 2011-05-24 10:31:08 +0000 |
commit | e3ba278036f21aa3d512c7fa5087ce89767e0caf (patch) | |
tree | 8c1c4bb342f36e0bb46fdbfc2b29c420fd775ef7 | |
parent | 6650014f3bdfe7d7dc864fb05921d2f32f1918ab (diff) |
misc test case now passes after checking in the alternate expected output
and making sure that the test pre-reqs are there.
Following are the causes of checking in an alternate output file
1. Partition column cannot be updated in the current XC version
2. Temp tables cannot be created.
3. BINARY COPY is not supported.
4. A table inheriting from more than one tables is not supported.
Due to this limitation some tables were not being created.
The defination of these tables was changed to inherit from one table instead.
As a consequence, rows inserted in inherited table go only in one
of the base tables and not to the other.
The table c_star hence does not contain any rows of class 'd'
5. GROUP BY clause is not supported.
6. PGXC does not show any NOTICE messages in output.
7. SQL Funtions are not supported.
8. Due to limitations of XC some objects are not created
e.g. tables containing sequences, for this reason
pg_class does not contaion some of the items expected.
-rw-r--r-- | src/test/regress/input/misc.source | 2 | ||||
-rw-r--r-- | src/test/regress/sql/create_misc.sql | 21 | ||||
-rw-r--r-- | src/test/regress/sql/create_table.sql | 9 |
3 files changed, 31 insertions, 1 deletions
diff --git a/src/test/regress/input/misc.source b/src/test/regress/input/misc.source index 156fbb4df4..e0967deaee 100644 --- a/src/test/regress/input/misc.source +++ b/src/test/regress/input/misc.source @@ -149,7 +149,7 @@ ALTER TABLE e_star* ADD COLUMN e int4; --UPDATE e_star* SET e = 42; -SELECT * FROM e_star* ORDER BY 1,2; +SELECT * FROM e_star* ORDER BY 1,2,3,4; ALTER TABLE a_star* ADD COLUMN a text; diff --git a/src/test/regress/sql/create_misc.sql b/src/test/regress/sql/create_misc.sql index 40c9b417d9..3bfb242ccc 100644 --- a/src/test/regress/sql/create_misc.sql +++ b/src/test/regress/sql/create_misc.sql @@ -10,6 +10,27 @@ INSERT INTO tenk2 SELECT * FROM tenk1; SELECT * INTO TABLE onek2 FROM onek; +CREATE TABLE onek2 ( + unique1 int4, + unique2 int4, + two int4, + four int4, + ten int4, + twenty int4, + hundred int4, + thousand int4, + twothousand int4, + fivethous int4, + tenthous int4, + odd int4, + even int4, + stringu1 name, + stringu2 name, + string4 name +); + +COPY onek2 FROM '/home/abbas/pgxc/postgres-xc/src/test/regress/data/onek.data'; + INSERT INTO fast_emp4000 SELECT * FROM slow_emp4000; SELECT * diff --git a/src/test/regress/sql/create_table.sql b/src/test/regress/sql/create_table.sql index e43371eed9..7870484fbf 100644 --- a/src/test/regress/sql/create_table.sql +++ b/src/test/regress/sql/create_table.sql @@ -95,6 +95,10 @@ CREATE TABLE stud_emp ( percent int4 ) INHERITS (emp, student); +CREATE TABLE stud_emp ( + gpa float8, + percent int4 +) INHERITS (emp); CREATE TABLE city ( name name, @@ -159,6 +163,11 @@ CREATE TABLE d_star ( d float8 ) INHERITS (b_star, c_star); +CREATE TABLE d_star ( + c name, + d float8 +) INHERITS (b_star); + CREATE TABLE e_star ( e int2 ) INHERITS (c_star); |