|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/intarray.sgml,v 1.6 2009/03/18 20:18:18 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/intarray.sgml,v 1.7 2009/04/05 00:40:35 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <sect1 id="intarray">
|
4 | 4 | <title>intarray</title>
|
|
134 | 134 | <entry>overlap — <literal>true</> if arrays have at least one common element</entry>
|
135 | 135 | </row>
|
136 | 136 | <row>
|
137 |
| - <entry><literal>int[] @> int[]</literal></entry> |
| 137 | + <entry><literal>int[] @ int[]</literal></entry> |
138 | 138 | <entry><type>boolean</type></entry>
|
139 | 139 | <entry>contains — <literal>true</> if left array contains right array</entry>
|
140 | 140 | </row>
|
141 | 141 | <row>
|
142 |
| - <entry><literal>int[] <@ int[]</literal></entry> |
| 142 | + <entry><literal>int[] ~ int[]</literal></entry> |
143 | 143 | <entry><type>boolean</type></entry>
|
144 | 144 | <entry>contained — <literal>true</> if left array is contained in right array</entry>
|
145 | 145 | </row>
|
|
203 | 203 | </table>
|
204 | 204 |
|
205 | 205 | <para>
|
206 |
| - (Before PostgreSQL 8.2, the containment operators @> and <@ were |
207 |
| - respectively called @ and ~. These names are still available, but are |
208 |
| - deprecated and will eventually be retired. Notice that the old names |
209 |
| - are reversed from the convention formerly followed by the core geometric |
210 |
| - datatypes!) |
| 206 | + The containment operators <literal>@</> and <literal>~</> are functionally |
| 207 | + equivalent to <productname>PostgreSQL</>'s built-in operators |
| 208 | + <literal>@></> and <literal><@</>, respectively, except that |
| 209 | + <literal>@</> and <literal>~</> work only on integer arrays. These |
| 210 | + operator names are deprecated and will eventually be retired. (Notice that |
| 211 | + these names are reversed from the convention formerly followed by the core |
| 212 | + geometric datatypes!) |
211 | 213 | </para>
|
212 | 214 |
|
213 | 215 | <para>
|
|
228 | 230 |
|
229 | 231 | <para>
|
230 | 232 | <filename>intarray</> provides index support for the
|
231 |
| - <literal>&&</>, <literal>@></>, <literal><@</>, |
232 |
| - and <literal>@@</> operators, as well as regular array equality. |
233 |
| - The implementation uses an RD-tree data structure with |
234 |
| - built-in lossy compression. |
| 233 | + <literal>&&</>, <literal>@</>, <literal>~</>, |
| 234 | + and <literal>@@</> operators, as well as regular array equality |
| 235 | + and the built-in <literal>@></> and <literal><@</> operators |
| 236 | + (when used on integer arrays). |
235 | 237 | </para>
|
236 | 238 |
|
237 | 239 | <para>
|
|
241 | 243 | <literal>gist__intbig_ops</> uses a larger signature and is more
|
242 | 244 | suitable for indexing large data sets (i.e., columns containing
|
243 | 245 | a large number of distinct array values).
|
| 246 | + The implementation uses an RD-tree data structure with |
| 247 | + built-in lossy compression. |
244 | 248 | </para>
|
245 | 249 |
|
246 | 250 | <para>
|
247 | 251 | There is also a non-default GIN operator class
|
248 |
| - <literal>gin__int_ops</>. |
| 252 | + <literal>gin__int_ops</> supporting the same operators. |
249 | 253 | </para>
|
250 | 254 |
|
251 | 255 | <para>
|
@@ -304,7 +308,7 @@ SELECT message.mid FROM message WHERE message.sections @@ '1&2'::query_int;
|
304 | 308 | <title>Authors</title>
|
305 | 309 |
|
306 | 310 | <para>
|
307 |
| - All work was done by Teodor Sigaev (<email>teodor@stack.net</email>) and |
| 311 | + All work was done by Teodor Sigaev (<email>teodor@sigaev.ru</email>) and |
308 | 312 | Oleg Bartunov (<email>oleg@sai.msu.su</email>). See
|
309 | 313 | <ulink url="http://www.sai.msu.su/~megera/postgres/gist"></ulink> for
|
310 | 314 | additional information. Andrey Oktyabrski did a great work on adding new
|
|
0 commit comments