QUERY: ALTER TABLE temp ADD COLUMN i char;
QUERY: ALTER TABLE temp ADD COLUMN j abstime[];
QUERY: ALTER TABLE temp ADD COLUMN k dt;
-ERROR: type name lookup of dt failed
+ERROR: type name lookup of dt failed
QUERY: ALTER TABLE temp ADD COLUMN l tid;
QUERY: ALTER TABLE temp ADD COLUMN m xid;
QUERY: ALTER TABLE temp ADD COLUMN n oid8;
QUERY: ALTER TABLE temp ADD COLUMN s path;
QUERY: ALTER TABLE temp ADD COLUMN t box;
QUERY: ALTER TABLE temp ADD COLUMN u tinterval;
-QUERY: ALTER TABLE temp ADD COLUMN v oidint4;
-QUERY: ALTER TABLE temp ADD COLUMN w oidname;
+QUERY: ALTER TABLE temp ADD COLUMN v datetime;
+QUERY: ALTER TABLE temp ADD COLUMN w timespan;
QUERY: ALTER TABLE temp ADD COLUMN x float8[];
QUERY: ALTER TABLE temp ADD COLUMN y float4[];
QUERY: ALTER TABLE temp ADD COLUMN z int2[];
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
-ERROR: Relation temp does not have attribute k
+ERROR: Relation temp does not have attribute k
QUERY: SELECT * FROM temp;
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
-------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
QUERY: ALTER TABLE temp ADD COLUMN i char;
QUERY: ALTER TABLE temp ADD COLUMN j abstime[];
QUERY: ALTER TABLE temp ADD COLUMN k dt;
-ERROR: type name lookup of dt failed
+ERROR: type name lookup of dt failed
QUERY: ALTER TABLE temp ADD COLUMN l tid;
QUERY: ALTER TABLE temp ADD COLUMN m xid;
QUERY: ALTER TABLE temp ADD COLUMN n oid8;
QUERY: ALTER TABLE temp ADD COLUMN s path;
QUERY: ALTER TABLE temp ADD COLUMN t box;
QUERY: ALTER TABLE temp ADD COLUMN u tinterval;
-QUERY: ALTER TABLE temp ADD COLUMN v oidint4;
-QUERY: ALTER TABLE temp ADD COLUMN w oidname;
+QUERY: ALTER TABLE temp ADD COLUMN v datetime;
+QUERY: ALTER TABLE temp ADD COLUMN w timespan;
QUERY: ALTER TABLE temp ADD COLUMN x float8[];
QUERY: ALTER TABLE temp ADD COLUMN y float4[];
QUERY: ALTER TABLE temp ADD COLUMN z int2[];
'1 2 3 4 5 6 7 8', 'magnetic disk', '(1.1,1.1)', '(4.1,4.1,3.1,3.1)',
'(0,2,4.1,4.1,3.1,3.1)', '(4.1,4.1,3.1,3.1)', '["current" "infinity"]',
'1/3', '1,name', '{1.0,2.0,3.0,4.0}', '{1.0,2.0,3.0,4.0}', '{1,2,3,4}');
-ERROR: Relation temp does not have attribute k
+ERROR: Relation temp does not have attribute k
QUERY: SELECT * FROM temp;
initial|a|b|c|d|e|f|g|h|i|j|l|m|n|p|q|r|s|t|u|v|w|x|y|z
-------+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
+++ /dev/null
-QUERY: CREATE TABLE OIDINT2_TBL(f1 oidint2);
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456');
-ERROR: pg_atoi: error reading "123456": Result too large
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT2_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT2_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT2_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT2_TBL(f1 oidint2);
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456');
-ERROR: pg_atoi: error reading "123456": Result too large
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT2_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT2_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT2_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT2_TBL(f1 oidint2);
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456');
-ERROR: pg_atoi: error reading "123456": Result too large
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT2_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT2_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT2_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT2_TBL(f1 oidint2);
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456');
-ERROR: pg_atoi: error reading "123456": Math result not representable
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT2_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT2_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT2_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT4_TBL(f1 oidint4);
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890');
-ERROR: pg_atoi: error reading "1234568901234567890": Result too large
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT4_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT4_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT4_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT4_TBL(f1 oidint4);
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890');
-ERROR: pg_atoi: error reading "1234568901234567890": Result too large
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT4_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT4_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT4_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT4_TBL(f1 oidint4);
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890');
-ERROR: pg_atoi: error reading "1234568901234567890": Result too large
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT4_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT4_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT4_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDINT4_TBL(f1 oidint4);
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1234/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890');
-ERROR: pg_atoi: error reading "1234568901234567890": Math result not representable
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('');
-QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd');
-ERROR: pg_atoi: error in "asdfasd": can't parse "asdfasd"
-QUERY: SELECT '' AS five, OIDINT4_TBL.*;
-five|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |123456/0
- |0/0
-(5 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 = '1235/9873';
-one|f1
----+---------
- |1235/9873
-(1 row)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <> '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |987/-1234
- |123456/0
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <= '1235/9873';
-four|f1
-----+---------
- |1234/9873
- |1235/9873
- |987/-1234
- |0/0
-(4 rows)
-
-QUERY: SELECT '' AS three, o.* FROM OIDINT4_TBL o WHERE o.f1 < '1235/9873';
-three|f1
------+---------
- |1234/9873
- |987/-1234
- |0/0
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
-two|f1
----+---------
- |1235/9873
- |123456/0
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
-one|f1
----+--------
- |123456/0
-(1 row)
-
-QUERY: DROP TABLE OIDINT4_TBL;
+++ /dev/null
-QUERY: CREATE TABLE OIDNAME_TBL(f1 oidname);
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('1234,abcd');
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('1235,efgh');
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('987,XXXX');
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('123456');
-ERROR: Bad input data for type oidname
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('123456,abcdefghijklmnopqrsutvwyz0123456789');
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('');
-ERROR: Bad input data for type oidname
-QUERY: INSERT INTO OIDNAME_TBL(f1) VALUES ('asdfasd');
-ERROR: Bad input data for type oidname
-QUERY: SELECT '' AS four, OIDNAME_TBL.*;
-four|f1
-----+--------------------------------------
- |1234,abcd
- |1235,efgh
- |987,XXXX
- |123456,abcdefghijklmnopqrsutvwyz012345
-(4 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDNAME_TBL o WHERE o.f1 = '1234,abcd';
-one|f1
----+---------
- |1234,abcd
-(1 row)
-
-QUERY: SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 <> '1234,abcd';
-three|f1
------+--------------------------------------
- |1235,efgh
- |987,XXXX
- |123456,abcdefghijklmnopqrsutvwyz012345
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 <= '1234,abcd';
-two|f1
----+---------
- |1234,abcd
- |987,XXXX
-(2 rows)
-
-QUERY: SELECT '' AS one, o.* FROM OIDNAME_TBL o WHERE o.f1 < '1234,abcd';
-one|f1
----+--------
- |987,XXXX
-(1 row)
-
-QUERY: SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 >= '1234,abcd';
-three|f1
------+--------------------------------------
- |1234,abcd
- |1235,efgh
- |123456,abcdefghijklmnopqrsutvwyz012345
-(3 rows)
-
-QUERY: SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 > '1234,abcd';
-two|f1
----+--------------------------------------
- |1235,efgh
- |123456,abcdefghijklmnopqrsutvwyz012345
-(2 rows)
-
-QUERY: DROP TABLE OIDNAME_TBL;
ALTER TABLE temp ADD COLUMN u tinterval;
-ALTER TABLE temp ADD COLUMN v oidint4;
+ALTER TABLE temp ADD COLUMN v datetime;
-ALTER TABLE temp ADD COLUMN w oidname;
+ALTER TABLE temp ADD COLUMN w timespan;
ALTER TABLE temp ADD COLUMN x float8[];
ALTER TABLE temp ADD COLUMN u tinterval;
-ALTER TABLE temp ADD COLUMN v oidint4;
+ALTER TABLE temp ADD COLUMN v datetime;
-ALTER TABLE temp ADD COLUMN w oidname;
+ALTER TABLE temp ADD COLUMN w timespan;
ALTER TABLE temp ADD COLUMN x float8[];
+++ /dev/null
--- *************testing built-in type oidint2 ****************
--- oidint2 is a an adt for multiple key indices involving oid and int2
--- probably will not be used directly by most users
-
-CREATE TABLE OIDINT2_TBL(f1 oidint2);
-
-INSERT INTO OIDINT2_TBL(f1) VALUES ('1234/9873');
-
-INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873');
-
-INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234');
-
--- no int2 component
---
--- this is defined as good in the code -- I don't know what will break
--- if we disallow it.
---
-INSERT INTO OIDINT2_TBL(f1) VALUES ('123456');
-
--- int2 component too large
-INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456');
-
---
--- this is defined as good in the code -- I don't know what will break
--- if we disallow it.
---
-INSERT INTO OIDINT2_TBL(f1) VALUES ('');
-
--- bad inputs
-INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd');
-
-
-SELECT '' AS five, OIDINT2_TBL.*;
-
-SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 = '1235/9873';
-
-SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <> '1235/9873';
-
-SELECT '' AS four, o.* FROM OIDINT2_TBL o WHERE o.f1 <= '1235/9873';
-
-SELECT '' AS three, o.* FROM OIDINT2_TBL o WHERE o.f1 < '1235/9873';
-
-SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
-
-SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
-
-DROP TABLE OIDINT2_TBL;
+++ /dev/null
---*************testing built-in type oidint4 ****************
--- oidint4 is a an adt for multiple key indices involving oid and int4
--- probably will not be used directly by most users
-
-CREATE TABLE OIDINT4_TBL(f1 oidint4);
-
-INSERT INTO OIDINT4_TBL(f1) VALUES ('1234/9873');
-
-INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873');
-
-INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234');
-
--- no int4 component
---
--- this is defined as good in the code -- I don't know what will break
--- if we disallow it.
---
-INSERT INTO OIDINT4_TBL(f1) VALUES ('123456');
-
--- int4 component too large
-INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890');
-
---
--- this is defined as good in the code -- I don't know what will break
--- if we disallow it.
---
-INSERT INTO OIDINT4_TBL(f1) VALUES ('');
-
--- bad inputs
-INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd');
-
-SELECT '' AS five, OIDINT4_TBL.*;
-
-SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 = '1235/9873';
-
-SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <> '1235/9873';
-
-SELECT '' AS four, o.* FROM OIDINT4_TBL o WHERE o.f1 <= '1235/9873';
-
-SELECT '' AS three, o.* FROM OIDINT4_TBL o WHERE o.f1 < '1235/9873';
-
-SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
-
-SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
-
-DROP TABLE OIDINT4_TBL;
+++ /dev/null
--- *************testing built-in type oidname ****************
--- oidname is a an adt for multiple key indices involving oid and name
--- probably will not be used directly by most users
-
-CREATE TABLE OIDNAME_TBL(f1 oidname);
-
-INSERT INTO OIDNAME_TBL(f1) VALUES ('1234,abcd');
-
-INSERT INTO OIDNAME_TBL(f1) VALUES ('1235,efgh');
-
-INSERT INTO OIDNAME_TBL(f1) VALUES ('987,XXXX');
-
--- no name component
-INSERT INTO OIDNAME_TBL(f1) VALUES ('123456');
-
--- name component too long
-INSERT INTO OIDNAME_TBL(f1) VALUES ('123456,abcdefghijklmnopqrsutvwyz0123456789');
-
--- bad inputs
-INSERT INTO OIDNAME_TBL(f1) VALUES ('');
-
-INSERT INTO OIDNAME_TBL(f1) VALUES ('asdfasd');
-
-
-SELECT '' AS four, OIDNAME_TBL.*;
-
-SELECT '' AS one, o.* FROM OIDNAME_TBL o WHERE o.f1 = '1234,abcd';
-
-SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 <> '1234,abcd';
-
-SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 <= '1234,abcd';
-
-SELECT '' AS one, o.* FROM OIDNAME_TBL o WHERE o.f1 < '1234,abcd';
-
-SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 >= '1234,abcd';
-
-SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 > '1234,abcd';
-
-DROP TABLE OIDNAME_TBL;
int4
int8
oid
-oidint2
-oidint4
-oidname
float4
float8
numerology