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
4f2e5a8a
Commit
4f2e5a8a
authored
Oct 11, 2014
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regression: adjust polygon diagrams to not use tabs
Also, small diagram adjustments Patch by Emre Hasegeli
parent
25ad5a52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
34 deletions
+36
-34
src/test/regress/expected/polygon.out
src/test/regress/expected/polygon.out
+18
-17
src/test/regress/sql/polygon.sql
src/test/regress/sql/polygon.sql
+18
-17
No files found.
src/test/regress/expected/polygon.out
View file @
4f2e5a8a
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
--
--
-- polygon logic
-- polygon logic
--
--
-- 3
o
-- 3
o
--
|
--
|
-- 2
+ |
-- 2
+ |
--
/ |
--
/ |
-- 1
# o
+
-- 1
#
+
-- /
|
-- /
o
|
-- 0
#-----o-+
-- 0
#-----o-+
--
--
--
0 1 2 3 4
--
0 1 2 3 4
--
--
CREATE TABLE POLYGON_TBL(f1 polygon);
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 ('(2.0,0.0),(2.0,4.0),(0.0,0.0)');
...
@@ -128,15 +128,16 @@ SELECT '' AS one, p.*
...
@@ -128,15 +128,16 @@ SELECT '' AS one, p.*
--
--
-- polygon logic
-- polygon logic
--
--
-- 3
o
-- 3
o
--
|
--
/
|
-- 2
+ |
-- 2
+ |
--
/ |
--
/ |
-- 1
/ o +
-- 1
/ o +
-- / |
-- / |
-- 0 +-----o-+
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
--
-- 0 1 2 3 4
--
--
-- left of
-- 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;
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;
...
@@ -248,11 +249,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' && polygon '(3.0,1.0),(3.0,3.0),(
...
@@ -248,11 +249,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' && polygon '(3.0,1.0),(3.0,3.0),(
(1 row)
(1 row)
-- +--------------------+
-- +--------------------+
-- | *---*
1
-- | *---*
1
-- | + | |
-- | + | |
-- | 2 *---*
-- | 2 *---*
-- +--------------------+
-- +--------------------+
--
3
--
3
-- Edges 1-2, 2-3 are not shown on picture
-- 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 '((0,4),(6,4),(1,2),(6,0),(0,0))'::polygon && '((2,1),(2,3),(3,3),(3,1))'::polygon AS "true";
true
true
...
...
src/test/regress/sql/polygon.sql
View file @
4f2e5a8a
...
@@ -3,15 +3,15 @@
...
@@ -3,15 +3,15 @@
--
--
-- polygon logic
-- polygon logic
--
--
-- 3
o
-- 3
o
--
|
--
|
-- 2
+ |
-- 2
+ |
--
/ |
--
/ |
-- 1
# o
+
-- 1
#
+
-- /
|
-- /
o
|
-- 0
#-----o-+
-- 0
#-----o-+
--
--
--
0 1 2 3 4
--
0 1 2 3 4
--
--
CREATE
TABLE
POLYGON_TBL
(
f1
polygon
);
CREATE
TABLE
POLYGON_TBL
(
f1
polygon
);
...
@@ -83,15 +83,16 @@ SELECT '' AS one, p.*
...
@@ -83,15 +83,16 @@ SELECT '' AS one, p.*
--
--
-- polygon logic
-- polygon logic
--
--
-- 3
o
-- 3
o
--
|
--
/
|
-- 2
+ |
-- 2
+ |
--
/ |
--
/ |
-- 1
/ o +
-- 1
/ o +
-- / |
-- / |
-- 0 +-----o-+
-- 0 +-----o-+
--
-- 0 1 2 3 4
--
--
-- 0 1 2 3 4
--
--
-- left of
-- 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
;
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
;
...
@@ -155,11 +156,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' ~= polygon '(3.0,1.0),(3.0,3.0),(
...
@@ -155,11 +156,11 @@ SELECT polygon '(2.0,0.0),(2.0,4.0),(0.0,0.0)' ~= polygon '(3.0,1.0),(3.0,3.0),(
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
;
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
-- | *---*
1
-- | + | |
-- | + | |
-- | 2 *---*
-- | 2 *---*
-- +--------------------+
-- +--------------------+
--
3
--
3
-- Edges 1-2, 2-3 are not shown on picture
-- 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
'((0,4),(6,4),(1,2),(6,0),(0,0))'
::
polygon
&&
'((2,1),(2,3),(3,3),(3,1))'
::
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