|
1 | 1 | <!-- |
2 | | -$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.266 2005/07/15 19:02:12 momjian Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.267 2005/07/18 22:34:14 tgl Exp $ |
3 | 3 | PostgreSQL documentation |
4 | 4 | --> |
5 | 5 |
|
@@ -5886,7 +5886,8 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT |
5886 | 5886 | Note that the <quote>same as</> operator, <literal>~=</>, represents |
5887 | 5887 | the usual notion of equality for the <type>point</type>, |
5888 | 5888 | <type>box</type>, <type>polygon</type>, and <type>circle</type> types. |
5889 | | - Some of these types also have an <literal>=</> operator, but it compares |
| 5889 | + Some of these types also have an <literal>=</> operator, but |
| 5890 | + <literal>=</> compares |
5890 | 5891 | for equal <emphasis>areas</> only. The other scalar comparison operators |
5891 | 5892 | (<literal><=</> and so on) likewise compare areas for these types. |
5892 | 5893 | </para> |
@@ -6081,12 +6082,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT |
6081 | 6082 | <entry>area</entry> |
6082 | 6083 | <entry><literal>area(box '((0,0),(1,1))')</literal></entry> |
6083 | 6084 | </row> |
6084 | | - <row> |
6085 | | - <entry><literal><function>box_intersect</function>(<type>box</>, <type>box</>)</literal></entry> |
6086 | | - <entry><type>box</type></entry> |
6087 | | - <entry>intersection box</entry> |
6088 | | - <entry><literal>box_intersect(box '((0,0),(1,1))',box '((0.5,0.5),(2,2))')</literal></entry> |
6089 | | - </row> |
6090 | 6085 | <row> |
6091 | 6086 | <entry><literal><function>center</function>(<replaceable>object</>)</literal></entry> |
6092 | 6087 | <entry><type>point</type></entry> |
@@ -6215,6 +6210,12 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT |
6215 | 6210 | <entry>center and radius to circle</entry> |
6216 | 6211 | <entry><literal>circle(point '(0,0)', 2.0)</literal></entry> |
6217 | 6212 | </row> |
| 6213 | + <row> |
| 6214 | + <entry><literal><function>circle</function>(<type>polygon</type>)</literal></entry> |
| 6215 | + <entry><type>circle</type></entry> |
| 6216 | + <entry>polygon to circle</entry> |
| 6217 | + <entry><literal>circle(polygon '((0,0),(1,1),(2,0))')</literal></entry> |
| 6218 | + </row> |
6218 | 6219 | <row> |
6219 | 6220 | <entry><literal><function>lseg</function>(<type>box</type>)</literal></entry> |
6220 | 6221 | <entry><type>lseg</type></entry> |
@@ -6258,12 +6259,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT |
6258 | 6259 | <entry>center of lseg</entry> |
6259 | 6260 | <entry><literal>point(lseg '((-1,0),(1,0))')</literal></entry> |
6260 | 6261 | </row> |
6261 | | - <row> |
6262 | | - <entry><literal><function>point</function>(<type>lseg</type>, <type>lseg</type>)</literal></entry> |
6263 | | - <entry><type>point</type></entry> |
6264 | | - <entry>intersection</entry> |
6265 | | - <entry><literal>point(lseg '((-1,0),(1,0))', lseg '((-2,-2),(2,2))')</literal></entry> |
6266 | | - </row> |
6267 | 6262 | <row> |
6268 | 6263 | <entry><literal><function>point</function>(<type>polygon</type>)</literal></entry> |
6269 | 6264 | <entry><type>point</type></entry> |
|