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 $ -->
2
2
3
3
<chapter id="functions">
4
4
<title>Functions and Operators</title>
@@ -6498,14 +6498,14 @@ SELECT pg_sleep(1.5);
6498
6498
<entry><literal>lseg '((-1,0),(1,0))' ?|| lseg '((-1,2),(1,2))'</literal></entry>
6499
6499
</row>
6500
6500
<row>
6501
- <entry> <literal>~ </literal> </entry>
6501
+ <entry> <literal>@> </literal> </entry>
6502
6502
<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>
6504
6504
</row>
6505
6505
<row>
6506
- <entry> <literal>@</literal> </entry>
6506
+ <entry> <literal>< @</literal> </entry>
6507
6507
<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>
6509
6509
</row>
6510
6510
<row>
6511
6511
<entry> <literal>~=</literal> </entry>
@@ -6516,6 +6516,15 @@ SELECT pg_sleep(1.5);
6516
6516
</tgroup>
6517
6517
</table>
6518
6518
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
+
6519
6528
<indexterm>
6520
6529
<primary>area</primary>
6521
6530
</indexterm>
@@ -7051,10 +7060,7 @@ SELECT pg_sleep(1.5);
7051
7060
available for use with the <type>macaddr</type> type. The function
7052
7061
<literal><function>trunc</function>(<type>macaddr</type>)</literal> returns a MAC
7053
7062
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.
7058
7064
</para>
7059
7065
7060
7066
<table id="macaddr-functions-table">
@@ -7613,6 +7619,20 @@ SELECT NULLIF(value, '(none)') ...
7613
7619
<entry><literal>t</literal></entry>
7614
7620
</row>
7615
7621
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
+
7616
7636
<row>
7617
7637
<entry> <literal>||</literal> </entry>
7618
7638
<entry>array-to-array concatenation</entry>
0 commit comments