Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b63e57be
Commit
b63e57be
authored
Apr 27, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*shrug* I don't know anymore...
parent
78454c27
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2070 additions
and
5 deletions
+2070
-5
src/test/regress/expected/datetime.out
src/test/regress/expected/datetime.out
+699
-0
src/test/regress/expected/errors.out
src/test/regress/expected/errors.out
+168
-0
src/test/regress/expected/timespan.out
src/test/regress/expected/timespan.out
+148
-0
src/test/regress/input/create_function_1.source
src/test/regress/input/create_function_1.source
+5
-5
src/test/regress/input/misc.source
src/test/regress/input/misc.source
+1050
-0
No files found.
src/test/regress/expected/datetime.out
0 → 100644
View file @
b63e57be
This diff is collapsed.
Click to expand it.
src/test/regress/expected/errors.out
0 → 100644
View file @
b63e57be
QUERY: select 1
select
select * from nonesuch;
WARN:parser: parse error at or near "select"
QUERY: select nonesuch from pg_database;
WARN:attribute "nonesuch" not found
QUERY: select * from pg_database where nonesuch = pg_database.datname;
WARN:attribute "nonesuch" not found
QUERY: select * from pg_database where pg_database.datname = nonesuch;
WARN:attribute "nonesuch" not found
QUERY: select distinct on foobar from pg_database;
WARN:parser: parse error at or near "from"
QUERY: select distinct on foobar * from pg_database;
WARN:The field specified in the UNIQUE ON clause is not in the targetlist
QUERY: delete from;
WARN:parser: parse error at or near ";"
QUERY: delete from nonesuch;
WARN:nonesuch: Table does not exist.
QUERY: drop table;
WARN:parser: parse error at or near ";"
QUERY: drop table nonesuch;
WARN:Relation nonesuch Does Not Exist!
QUERY: alter table rename;
WARN:parser: parse error at or near "rename"
QUERY: alter table nonesuch rename to newnonesuch;
WARN:renamerel: relation "nonesuch" does not exist
QUERY: alter table nonesuch rename to stud_emp;
WARN:renamerel: relation "nonesuch" does not exist
QUERY: alter table stud_emp rename to pg_stud_emp;
WARN:renamerel: Illegal class name: "pg_stud_emp" -- pg_ is reserved for system catalogs
QUERY: alter table stud_emp rename to aggtest;
WARN:renamerel: relation "aggtest" exists
QUERY: alter table stud_emp rename to stud_emp;
WARN:renamerel: relation "stud_emp" exists
QUERY: alter table nonesuchrel rename column nonesuchatt to newnonesuchatt;
WARN:renameatt: relation "nonesuchrel" nonexistent
QUERY: alter table emp rename column nonesuchatt to newnonesuchatt;
WARN:renameatt: attribute "nonesuchatt" nonexistent
QUERY: alter table emp rename column salary to manager;
WARN:renameatt: attribute "manager" exists
QUERY: alter table emp rename column salary to oid;
WARN:renameatt: attribute "oid" exists
QUERY: abort;
NOTICE:UserAbortTransactionBlock and not in in-progress state
QUERY: end;
NOTICE:EndTransactionBlock and not inprogress/abort state
QUERY: create aggregate newavg1 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int4inc,
stype2 = int4,
initcond1 = '0',
initcond2 = '0');
WARN:AggregateCreate: Aggregate must have final function with both transition functions
QUERY: create aggregate newavg2 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int2inc,
stype2 = int2,
finalfunc = int4div,
initcond1 = '0',
initcond2 = '0');
WARN:AggregateCreate: 'int4div'('int4','int2') does not exist
QUERY: create aggregate newavg3 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int4inc,
stype2 = int4,
finalfunc = int2div,
initcond1 = '0',
initcond2 = '0');
WARN:AggregateCreate: 'int2div'('int4','int4') does not exist
QUERY: create aggregate newcnt1 (sfunc2 = int4inc,
stype2 = int4,
initcond2 = '0');
WARN:Define: "basetype" unspecified
QUERY: create aggregate newcnt1 (sfunc2 = int4inc,
basetype = int4,
stype2 = int4);
WARN:AggregateCreate: transition function 2 MUST have an initial value
QUERY: drop index;
WARN:parser: parse error at or near ";"
QUERY: drop index 314159;
WARN:parser: parse error at or near "314159"
QUERY: drop index nonesuch;
WARN:index "nonesuch" nonexistent
QUERY: drop aggregate;
WARN:parser: parse error at or near ";"
QUERY: drop aggregate 314159;
WARN:parser: parse error at or near "314159"
QUERY: drop aggregate nonesuch;
WARN:RemoveAggregate: aggregate 'nonesuch' does not exist
QUERY: drop function ();
WARN:parser: parse error at or near "("
QUERY: drop function 314159();
WARN:parser: parse error at or near "314159"
QUERY: drop function nonesuch();
WARN:RemoveFunction: function nonesuch() does not exist
QUERY: drop type;
WARN:parser: parse error at or near ";"
QUERY: drop type 314159;
WARN:parser: parse error at or near "314159"
QUERY: drop type nonesuch;
WARN:RemoveType: type 'nonesuch' does not exist
QUERY: drop operator;
WARN:parser: parse error at or near ";"
QUERY: drop operator equals;
WARN:parser: parse error at or near "equals"
QUERY: drop operator ===;
WARN:parser: parse error at or near ";"
QUERY: drop operator int4, int4;
WARN:parser: parse error at or near "int4"
QUERY: drop operator (int4, int4);
WARN:parser: parse error at or near "("
QUERY: drop operator === ();
WARN:parser: parse error at or near ")"
QUERY: drop operator === (int4);
WARN:parser: argument type missing (use NONE for unary operators)
QUERY: drop operator === (int4, int4);
WARN:RemoveOperator: binary operator '===' taking 'int4' and 'int4' does not exist
QUERY: drop operator = (nonesuch);
WARN:parser: argument type missing (use NONE for unary operators)
QUERY: drop operator = ( , int4);
WARN:parser: parse error at or near ","
QUERY: drop operator = (nonesuch, int4);
WARN:RemoveOperator: type 'nonesuch' does not exist
QUERY: drop operator = (int4, nonesuch);
WARN:RemoveOperator: type 'nonesuch' does not exist
QUERY: drop operator = (int4, );
WARN:parser: parse error at or near ")"
QUERY: drop rule;
WARN:parser: parse error at or near ";"
QUERY: drop rule 314159;
WARN:parser: parse error at or near "314159"
QUERY: drop rule nonesuch;
WARN:RewriteGetRuleEventRel: rule "nonesuch" not found
QUERY: drop tuple rule nonesuch;
WARN:parser: parse error at or near "tuple"
QUERY: drop instance rule nonesuch;
WARN:parser: parse error at or near "instance"
QUERY: drop rewrite rule nonesuch;
WARN:parser: parse error at or near "rewrite"
src/test/regress/expected/timespan.out
0 → 100644
View file @
b63e57be
QUERY: CREATE TABLE TIMESPAN_TBL (f1 timespan);
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 1 minute');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 5 hour');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 10 day');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 34 year');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 3 months');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 14 seconds ago');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('1 day 2 hours 3 minutes 4 seconds');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('6 years');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('5 months');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('5 months 12 hours');
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('badly formatted timespan');
WARN:Bad timespan external representation badly formatted timespan
QUERY: INSERT INTO TIMESPAN_TBL (f1) VALUES ('@ 30 eons ago');
WARN:Bad timespan external representation @ 30 eons ago
QUERY: SELECT '' AS ten, TIMESPAN_TBL.*;
ten|f1
---+-----------------------------
|@ 1 min
|@ 5 hours
|@ 10 days
|@ 34 years
|@ 3 mons
|@ 14 secs ago
|@ 1 day 2 hours 3 mins 4 secs
|@ 6 years
|@ 5 mons
|@ 5 mons 12 hours
(10 rows)
QUERY: SELECT '' AS nine, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 <> '@ 10 days'::timespan;
nine|f1
----+-----------------------------
|@ 1 min
|@ 5 hours
|@ 34 years
|@ 3 mons
|@ 14 secs ago
|@ 1 day 2 hours 3 mins 4 secs
|@ 6 years
|@ 5 mons
|@ 5 mons 12 hours
(9 rows)
QUERY: SELECT '' AS three, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 <= '@ 5 hours'::timespan;
three|f1
-----+-------------
|@ 1 min
|@ 5 hours
|@ 14 secs ago
(3 rows)
QUERY: SELECT '' AS three, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 < '@ 1 day'::timespan;
three|f1
-----+-------------
|@ 1 min
|@ 5 hours
|@ 14 secs ago
(3 rows)
QUERY: SELECT '' AS one, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 = '@ 34 years'::timespan;
one|f1
---+----------
|@ 34 years
(1 row)
QUERY: SELECT '' AS five, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 >= '@ 1 month'::timespan;
five|f1
----+-----------------
|@ 34 years
|@ 3 mons
|@ 6 years
|@ 5 mons
|@ 5 mons 12 hours
(5 rows)
QUERY: SELECT '' AS nine, TIMESPAN_TBL.*
WHERE TIMESPAN_TBL.f1 > '@ 3 seconds ago'::timespan;
nine|f1
----+-----------------------------
|@ 1 min
|@ 5 hours
|@ 10 days
|@ 34 years
|@ 3 mons
|@ 1 day 2 hours 3 mins 4 secs
|@ 6 years
|@ 5 mons
|@ 5 mons 12 hours
(9 rows)
QUERY: SELECT '' AS fortyfive, r1.*, r2.*
FROM TIMESPAN_TBL r1, TIMESPAN_TBL r2
WHERE r1.f1 > r2.f1;
fortyfive|f1 |f1
---------+-----------------------------+-----------------------------
|@ 5 hours |@ 1 min
|@ 10 days |@ 1 min
|@ 34 years |@ 1 min
|@ 3 mons |@ 1 min
|@ 1 day 2 hours 3 mins 4 secs|@ 1 min
|@ 6 years |@ 1 min
|@ 5 mons |@ 1 min
|@ 5 mons 12 hours |@ 1 min
|@ 10 days |@ 5 hours
|@ 34 years |@ 5 hours
|@ 3 mons |@ 5 hours
|@ 1 day 2 hours 3 mins 4 secs|@ 5 hours
|@ 6 years |@ 5 hours
|@ 5 mons |@ 5 hours
|@ 5 mons 12 hours |@ 5 hours
|@ 34 years |@ 10 days
|@ 3 mons |@ 10 days
|@ 6 years |@ 10 days
|@ 5 mons |@ 10 days
|@ 5 mons 12 hours |@ 10 days
|@ 34 years |@ 3 mons
|@ 6 years |@ 3 mons
|@ 5 mons |@ 3 mons
|@ 5 mons 12 hours |@ 3 mons
|@ 1 min |@ 14 secs ago
|@ 5 hours |@ 14 secs ago
|@ 10 days |@ 14 secs ago
|@ 34 years |@ 14 secs ago
|@ 3 mons |@ 14 secs ago
|@ 1 day 2 hours 3 mins 4 secs|@ 14 secs ago
|@ 6 years |@ 14 secs ago
|@ 5 mons |@ 14 secs ago
|@ 5 mons 12 hours |@ 14 secs ago
|@ 10 days |@ 1 day 2 hours 3 mins 4 secs
|@ 34 years |@ 1 day 2 hours 3 mins 4 secs
|@ 3 mons |@ 1 day 2 hours 3 mins 4 secs
|@ 6 years |@ 1 day 2 hours 3 mins 4 secs
|@ 5 mons |@ 1 day 2 hours 3 mins 4 secs
|@ 5 mons 12 hours |@ 1 day 2 hours 3 mins 4 secs
|@ 34 years |@ 6 years
|@ 34 years |@ 5 mons
|@ 6 years |@ 5 mons
|@ 5 mons 12 hours |@ 5 mons
|@ 34 years |@ 5 mons 12 hours
|@ 6 years |@ 5 mons 12 hours
(45 rows)
src/test/regress/input/create_function_1.source
View file @
b63e57be
...
@@ -3,13 +3,13 @@
...
@@ -3,13 +3,13 @@
--
--
--
--
CREATE FUNCTION
circle
_in(opaque)
CREATE FUNCTION
widget
_in(opaque)
RETURNS
circle
RETURNS
widget
AS '_
OBJ
WD_/regress_DLSUFFIX_'
AS '_
C
WD_/regress_DLSUFFIX_'
LANGUAGE 'c';
LANGUAGE 'c';
CREATE FUNCTION
circle
_out(opaque)
CREATE FUNCTION
widget
_out(opaque)
RETURNS opaque
RETURNS opaque
AS '_
OBJ
WD_/regress_DLSUFFIX_'
AS '_
C
WD_/regress_DLSUFFIX_'
LANGUAGE 'c';
LANGUAGE 'c';
src/test/regress/input/misc.source
0 → 100644
View file @
b63e57be
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment