Skip to content

Commit 37464a0

Browse files
committed
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 #.
1 parent 5074655 commit 37464a0

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

doc/src/sgml/func.sgml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
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 $
33
PostgreSQL documentation
44
-->
55

@@ -5886,7 +5886,8 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
58865886
Note that the <quote>same as</> operator, <literal>~=</>, represents
58875887
the usual notion of equality for the <type>point</type>,
58885888
<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
58905891
for equal <emphasis>areas</> only. The other scalar comparison operators
58915892
(<literal>&lt;=</> and so on) likewise compare areas for these types.
58925893
</para>
@@ -6081,12 +6082,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
60816082
<entry>area</entry>
60826083
<entry><literal>area(box '((0,0),(1,1))')</literal></entry>
60836084
</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>
60906085
<row>
60916086
<entry><literal><function>center</function>(<replaceable>object</>)</literal></entry>
60926087
<entry><type>point</type></entry>
@@ -6215,6 +6210,12 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
62156210
<entry>center and radius to circle</entry>
62166211
<entry><literal>circle(point '(0,0)', 2.0)</literal></entry>
62176212
</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>
62186219
<row>
62196220
<entry><literal><function>lseg</function>(<type>box</type>)</literal></entry>
62206221
<entry><type>lseg</type></entry>
@@ -6258,12 +6259,6 @@ SELECT TIMESTAMP 'now'; -- incorrect for use with DEFAULT
62586259
<entry>center of lseg</entry>
62596260
<entry><literal>point(lseg '((-1,0),(1,0))')</literal></entry>
62606261
</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>
62676262
<row>
62686263
<entry><literal><function>point</function>(<type>polygon</type>)</literal></entry>
62696264
<entry><type>point</type></entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy