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
05d1910c
Commit
05d1910c
authored
Mar 19, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regression tests: remove polygon diagrams
The diagrams were inaccurate. Report by Emre Hasegeli
parent
788e799e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
126 deletions
+0
-126
src/test/regress/expected/polygon.out
src/test/regress/expected/polygon.out
+0
-63
src/test/regress/sql/polygon.sql
src/test/regress/sql/polygon.sql
+0
-63
No files found.
src/test/regress/expected/polygon.out
View file @
05d1910c
...
...
@@ -3,16 +3,6 @@
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # +
-- / o |
-- 0 #-----o-+
--
-- 0 1 2 3 4
--
CREATE TABLE POLYGON_TBL(f1 polygon);
INSERT INTO POLYGON_TBL(f1) VALUES ('(2.0,0.0),(2.0,4.0),(0.0,0.0)');
INSERT INTO POLYGON_TBL(f1) VALUES ('(3.0,1.0),(3.0,3.0),(1.0,0.0)');
...
...
@@ -128,17 +118,6 @@ SELECT '' AS one, p.*
--
-- polygon logic
--
-- 3 o
-- /|
-- 2 + |
-- / |
-- 1 / o +
-- / |
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
--
-- left of
SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' << polygon '(3.0,1.0),(3.0,3.0),(1.0,0.0)' AS false;
false
...
...
@@ -181,53 +160,24 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' @> polygon '(3.0,1.0),(3.0,3.0),(
f
(1 row)
-- +------------------------+
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +------------------------+
-- 3
-- endpoints '+' is ofr one polygon, '*' - for another
-- Edges 1-2, 2-3 are not shown on picture
SELECT '((0,4),(6,4),(1,2),(6,0),(0,0))'::polygon @> '((2,1),(2,3),(3,3),(3,1))'::polygon AS "false";
false
-------
f
(1 row)
-- +-----------+
-- | *---* /
-- | | |/
-- | | +
-- | | |\
-- | *---* \
-- +-----------+
SELECT '((0,4),(6,4),(3,2),(6,0),(0,0))'::polygon @> '((2,1),(2,3),(3,3),(3,1))'::polygon AS "true";
true
------
t
(1 row)
-- +-----------------+
-- | |
-- | +---*---*-----+
-- | | | |
-- | +---*---*-----+
-- | |
-- +-----------------+
SELECT '((1,1),(1,4),(5,4),(5,3),(2,3),(2,2),(5,2),(5,1))'::polygon @> '((3,2),(3,3),(4,3),(4,2))'::polygon AS "false";
false
-------
f
(1 row)
-- +---------+
-- | |
-- | *----*
-- | | |
-- | *----*
-- | |
-- +---------+
SELECT '((0,0),(0,3),(3,3),(3,0))'::polygon @> '((2,1),(2,2),(3,2),(3,1))'::polygon AS "true";
true
------
...
...
@@ -248,25 +198,12 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' && polygon '(3.0,1.0),(3.0,3.0),(
t
(1 row)
-- +--------------------+
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +--------------------+
-- 3
-- Edges 1-2, 2-3 are not shown on picture
SELECT '((0,4),(6,4),(1,2),(6,0),(0,0))'::polygon && '((2,1),(2,3),(3,3),(3,1))'::polygon AS "true";
true
------
t
(1 row)
-- +--+ *--*
-- | | | |
-- | | *--*
-- | +----+
-- | |
-- +-------+
SELECT '((1,4),(1,1),(4,1),(4,2),(2,2),(2,4),(1,4))'::polygon && '((3,3),(4,3),(4,4),(3,4),(3,3))'::polygon AS "false";
false
-------
...
...
src/test/regress/sql/polygon.sql
View file @
05d1910c
...
...
@@ -3,16 +3,6 @@
--
-- polygon logic
--
-- 3 o
-- |
-- 2 + |
-- / |
-- 1 # +
-- / o |
-- 0 #-----o-+
--
-- 0 1 2 3 4
--
CREATE
TABLE
POLYGON_TBL
(
f1
polygon
);
...
...
@@ -83,17 +73,6 @@ SELECT '' AS one, p.*
--
-- polygon logic
--
-- 3 o
-- /|
-- 2 + |
-- / |
-- 1 / o +
-- / |
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
--
-- left of
SELECT
polygon
'(2.0,0.0),(2.0,4.0),(0.0,0.0)'
<<
polygon
'(3.0,1.0),(3.0,3.0),(1.0,0.0)'
AS
false
;
...
...
@@ -112,41 +91,12 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' <@ polygon '(3.0,1.0),(3.0,3.0),(
-- contains
SELECT
polygon
'(2.0,0.0),(2.0,4.0),(0.0,0.0)'
@>
polygon
'(3.0,1.0),(3.0,3.0),(1.0,0.0)'
AS
false
;
-- +------------------------+
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +------------------------+
-- 3
-- endpoints '+' is ofr one polygon, '*' - for another
-- Edges 1-2, 2-3 are not shown on picture
SELECT
'((0,4),(6,4),(1,2),(6,0),(0,0))'
::
polygon
@>
'((2,1),(2,3),(3,3),(3,1))'
::
polygon
AS
"false"
;
-- +-----------+
-- | *---* /
-- | | |/
-- | | +
-- | | |\
-- | *---* \
-- +-----------+
SELECT
'((0,4),(6,4),(3,2),(6,0),(0,0))'
::
polygon
@>
'((2,1),(2,3),(3,3),(3,1))'
::
polygon
AS
"true"
;
-- +-----------------+
-- | |
-- | +---*---*-----+
-- | | | |
-- | +---*---*-----+
-- | |
-- +-----------------+
SELECT
'((1,1),(1,4),(5,4),(5,3),(2,3),(2,2),(5,2),(5,1))'
::
polygon
@>
'((3,2),(3,3),(4,3),(4,2))'
::
polygon
AS
"false"
;
-- +---------+
-- | |
-- | *----*
-- | | |
-- | *----*
-- | |
-- +---------+
SELECT
'((0,0),(0,3),(3,3),(3,0))'
::
polygon
@>
'((2,1),(2,2),(3,2),(3,1))'
::
polygon
AS
"true"
;
-- same
...
...
@@ -155,21 +105,8 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' ~= polygon '(3.0,1.0),(3.0,3.0),(
-- overlap
SELECT
polygon
'(2.0,0.0),(2.0,4.0),(0.0,0.0)'
&&
polygon
'(3.0,1.0),(3.0,3.0),(1.0,0.0)'
AS
true
;
-- +--------------------+
-- | *---* 1
-- | + | |
-- | 2 *---*
-- +--------------------+
-- 3
-- Edges 1-2, 2-3 are not shown on picture
SELECT
'((0,4),(6,4),(1,2),(6,0),(0,0))'
::
polygon
&&
'((2,1),(2,3),(3,3),(3,1))'
::
polygon
AS
"true"
;
-- +--+ *--*
-- | | | |
-- | | *--*
-- | +----+
-- | |
-- +-------+
SELECT
'((1,4),(1,1),(4,1),(4,2),(2,2),(2,4),(1,4))'
::
polygon
&&
'((3,3),(4,3),(4,4),(3,4),(3,3))'
::
polygon
AS
"false"
;
SELECT
'((200,800),(800,800),(800,200),(200,200))'
&&
'(1000,1000,0,0)'
::
polygon
AS
"true"
;
...
...
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