1- <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.334 2006/09/05 21:08 :33 tgl Exp $ -->
1+ <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.335 2006/09/10 00:29 :33 tgl Exp $ -->
22
33 <chapter id="functions">
44 <title>Functions and Operators</title>
@@ -6498,14 +6498,14 @@ SELECT pg_sleep(1.5);
64986498 <entry><literal>lseg '((-1,0),(1,0))' ?|| lseg '((-1,2),(1,2))'</literal></entry>
64996499 </row>
65006500 <row>
6501- <entry> <literal>~ </literal> </entry>
6501+ <entry> <literal>@> </literal> </entry>
65026502 <entry>Contains?</entry>
6503- <entry><literal>circle '((0,0),2)' ~ point '(1,1)'</literal></entry>
6503+ <entry><literal>circle '((0,0),2)' @> point '(1,1)'</literal></entry>
65046504 </row>
65056505 <row>
6506- <entry> <literal>@</literal> </entry>
6506+ <entry> <literal>< @</literal> </entry>
65076507 <entry>Contained in or on?</entry>
6508- <entry><literal>point '(1,1)' @ circle '((0,0),2)'</literal></entry>
6508+ <entry><literal>point '(1,1)' < @ circle '((0,0),2)'</literal></entry>
65096509 </row>
65106510 <row>
65116511 <entry> <literal>~=</literal> </entry>
@@ -6516,6 +6516,15 @@ SELECT pg_sleep(1.5);
65166516 </tgroup>
65176517 </table>
65186518
6519+ <note>
6520+ <para>
6521+ Before <productname>PostgreSQL</productname> 8.2, the containment
6522+ operators <literal>@></> and <literal><@</> were respectively
6523+ called <literal>~</> and <literal>@</>. These names are still
6524+ available, but are deprecated and will eventually be retired.
6525+ </para>
6526+ </note>
6527+
65196528 <indexterm>
65206529 <primary>area</primary>
65216530 </indexterm>
@@ -7051,10 +7060,7 @@ SELECT pg_sleep(1.5);
70517060 available for use with the <type>macaddr</type> type. The function
70527061 <literal><function>trunc</function>(<type>macaddr</type>)</literal> returns a MAC
70537062 address with the last 3 bytes set to zero. This can be used to
7054- associate the remaining prefix with a manufacturer. The directory
7055- <filename>contrib/mac</filename> in the source distribution
7056- contains some utilities to create and maintain such an association
7057- table.
7063+ associate the remaining prefix with a manufacturer.
70587064 </para>
70597065
70607066 <table id="macaddr-functions-table">
@@ -7613,6 +7619,20 @@ SELECT NULLIF(value, '(none)') ...
76137619 <entry><literal>t</literal></entry>
76147620 </row>
76157621
7622+ <row>
7623+ <entry> <literal>@></literal> </entry>
7624+ <entry>contains</entry>
7625+ <entry><literal>ARRAY[1,4,3] @> ARRAY[3,1]</literal></entry>
7626+ <entry><literal>t</literal></entry>
7627+ </row>
7628+
7629+ <row>
7630+ <entry> <literal><@</literal> </entry>
7631+ <entry>is contained by</entry>
7632+ <entry><literal>ARRAY[2,7] <@ ARRAY[1,7,4,2,6]</literal></entry>
7633+ <entry><literal>t</literal></entry>
7634+ </row>
7635+
76167636 <row>
76177637 <entry> <literal>||</literal> </entry>
76187638 <entry>array-to-array concatenation</entry>
0 commit comments