aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-07-18 22:34:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-07-18 22:34:14 +0000
commit37464a0326167ad57e54eb8aab2ae1f553252c39 (patch)
tree97ba99b4a1ecbaa1188a4c192f4506f167637ae9
parent507465525e8c3e4ebf0159ac07c915dd609cd6b3 (diff)
downloadpostgresql-37464a0326167ad57e54eb8aab2ae1f553252c39.tar.gz
postgresql-37464a0326167ad57e54eb8aab2ae1f553252c39.zip
Fix some bogosities in geometric-function documentation: add an entry
for circle(polygon), which was missing; remove bogus entry for point(lseg, lseg), which does not exist, and the documentation seemed to describe lseg_interpt, which we already document as an operator not a function. Also remove entry for box_intersect, which likewise is preferentially used via the operator #.
-rw-r--r--doc/src/sgml/func.sgml23
1 files changed, 9 insertions, 14 deletions
diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 25e37f80a20..9fd6ed61f8e 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.266 2005/07/15 19:02:12 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.267 2005/07/18 22:34:14 tgl Exp $
PostgreSQL documentation
-->
@@ -5886,7 +5886,8 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
Note that the <quote>same as</> operator, <literal>~=</>, represents
the usual notion of equality for the <type>point</type>,
<type>box</type>, <type>polygon</type>, and <type>circle</type> types.
- Some of these types also have an <literal>=</> operator, but it compares
+ Some of these types also have an <literal>=</> operator, but
+ <literal>=</> compares
for equal <emphasis>areas</> only. The other scalar comparison operators
(<literal>&lt;=</> and so on) likewise compare areas for these types.
</para>
@@ -6082,12 +6083,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
<entry><literal>area(box '((0,0),(1,1))')</literal></entry>
</row>
<row>
- <entry><literal><function>box_intersect</function>(<type>box</>, <type>box</>)</literal></entry>
- <entry><type>box</type></entry>
- <entry>intersection box</entry>
- <entry><literal>box_intersect(box '((0,0),(1,1))',box '((0.5,0.5),(2,2))')</literal></entry>
- </row>
- <row>
<entry><literal><function>center</function>(<replaceable>object</>)</literal></entry>
<entry><type>point</type></entry>
<entry>center</entry>
@@ -6216,6 +6211,12 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
<entry><literal>circle(point '(0,0)', 2.0)</literal></entry>
</row>
<row>
+ <entry><literal><function>circle</function>(<type>polygon</type>)</literal></entry>
+ <entry><type>circle</type></entry>
+ <entry>polygon to circle</entry>
+ <entry><literal>circle(polygon '((0,0),(1,1),(2,0))')</literal></entry>
+ </row>
+ <row>
<entry><literal><function>lseg</function>(<type>box</type>)</literal></entry>
<entry><type>lseg</type></entry>
<entry>box diagonal to line segment</entry>
@@ -6259,12 +6260,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
<entry><literal>point(lseg '((-1,0),(1,0))')</literal></entry>
</row>
<row>
- <entry><literal><function>point</function>(<type>lseg</type>, <type>lseg</type>)</literal></entry>
- <entry><type>point</type></entry>
- <entry>intersection</entry>
- <entry><literal>point(lseg '((-1,0),(1,0))', lseg '((-2,-2),(2,2))')</literal></entry>
- </row>
- <row>
<entry><literal><function>point</function>(<type>polygon</type>)</literal></entry>
<entry><type>point</type></entry>
<entry>center of polygon</entry>