diff options
| author | Marc G. Fournier <scrappy@hub.org> | 1997-04-22 17:35:09 +0000 |
|---|---|---|
| committer | Marc G. Fournier <scrappy@hub.org> | 1997-04-22 17:35:09 +0000 |
| commit | 9e2a87b62db87fc4175b00dabfd26293a2d072fa (patch) | |
| tree | 431dc2f390475e033dc2cfda38fddb6a79e4abb2 /src/test/regress/expected/misc.out | |
| parent | 051b4210e3cb3f3a9ec7cd5ab4503b48f279ab48 (diff) | |
| download | postgresql-9e2a87b62db87fc4175b00dabfd26293a2d072fa.tar.gz | |
Major patch from Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
OK, here are a passel of patches for the geometric data types.
These add a "circle" data type, new operators and functions
for the existing data types, and change the default formats
for some of the existing types to make them consistant with
each other. Current formatting conventions (e.g. compatible
with v6.0 to allow dump/reload) are supported, but the new
conventions should be an improvement and we can eventually
drop the old conventions entirely.
For example, there are two kinds of paths (connected line segments),
open and closed, and the old format was
'(1,2,1,2,3,4)' for a closed path with two points (1,2) and (3,4)
'(0,2,1,2,3,4)' for an open path with two points (1,2) and (3,4)
Pretty arcane, huh? The new format for paths is
'((1,2),(3,4))' for a closed path with two points (1,2) and (3,4)
'[(1,2),(3,4)]' for an open path with two points (1,2) and (3,4)
For polygons, the old convention is
'(0,4,2,0,4,3)' for a triangle with points at (0,0),(4,4), and (2,3)
and the new convention is
'((0,0),(4,4),(2,3))' for a triangle with points at (0,0),(4,4), and (2,3)
Other data types which are also represented as lists of points
(e.g. boxes, line segments, and polygons) have similar representations
(they surround each point with parens).
For v6.1, any format which can be interpreted as the old style format
is decoded as such; we can remove that backwards compatibility but ugly
convention for v7.0. This will allow dump/reloads from v6.0.
These include some updates to the regression test files to change the test
for creating a data type from "circle" to "widget" to keep the test from
trashing the new builtin circle type.
Diffstat (limited to 'src/test/regress/expected/misc.out')
| -rw-r--r-- | src/test/regress/expected/misc.out | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/regress/expected/misc.out b/src/test/regress/expected/misc.out index 4466bd9187..5bc297a346 100644 --- a/src/test/regress/expected/misc.out +++ b/src/test/regress/expected/misc.out @@ -3357,20 +3357,20 @@ QUERY: DROP FUNCTION hobbies(person); QUERY: DROP FUNCTION hobby_construct(text,text); QUERY: DROP FUNCTION equipment(hobbies_r); QUERY: DROP FUNCTION user_relns(); -QUERY: DROP FUNCTION circle_in(opaque); -QUERY: DROP FUNCTION circle_out(opaque); -QUERY: DROP FUNCTION pt_in_circle(point,circle); +QUERY: DROP FUNCTION widget_in(opaque); +QUERY: DROP FUNCTION widget_out(opaque); +QUERY: DROP FUNCTION pt_in_widget(point,widget); QUERY: DROP FUNCTION overpaid(emp); QUERY: DROP FUNCTION boxarea(box); QUERY: DROP FUNCTION interpt_pp(path,path); QUERY: DROP FUNCTION reverse_c16(char16); QUERY: DROP OPERATOR ## (path, path); -QUERY: DROP OPERATOR <% (point, circle); +QUERY: DROP OPERATOR <% (point, widget); QUERY: DROP OPERATOR @#@ (none, int4); QUERY: DROP OPERATOR #@# (int4, none); QUERY: DROP OPERATOR #%# (int4, none); QUERY: DROP TYPE city_budget; -QUERY: DROP TYPE circle; +QUERY: DROP TYPE widget; QUERY: DROP AGGREGATE newavg; QUERY: DROP AGGREGATE newsum; QUERY: DROP AGGREGATE newcnt; |
