PostgreSQL学習編9.11ジオメトリタイプ


       ,         。

point :     
line:  
lseg:  
box:  
path:  ,()      ,[]      
circle: 
 

  :
     '    '
'    '::    

postgres=# select '1,1'::point;
 point
-------
 (1,1)
(1 row)

postgres=# select '(1,1)'::point;
 point
-------
 (1,1)
(1 row)

postgres=# select lseg'1,1,2,3';
     lseg     
---------------
 [(1,1),(2,3)]
(1 row)

postgres=# select box'1,2,1,4';
     box     
-------------
 (1,4),(1,2)
(1 row)

postgres=# select path'1,3,6,8,9,3,4,7';
           path           
---------------------------
 ((1,3),(6,8),(9,3),(4,7))
(1 row)
postgres=# select circle'1,2,3';
  circle   
-----------
 
(1 row)