Skip to content

Commit e453938

Browse files
committed
Doc: fix bogus intarray index example.
The siglen parameter is provided by gist__intbig_ops not gist__int_ops. Simon Norris Discussion: https://postgr.es/m/11BF2AA9-17AE-432A-AFE1-584FB9FB079D@hillcrestgeo.ca
1 parent 1e809db commit e453938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/sgml/intarray.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@
446446
CREATE TABLE message (mid INT PRIMARY KEY, sections INT[], ...);
447447

448448
-- create specialized index with signature length of 32 bytes
449-
CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__int_ops(siglen=32));
449+
CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__intbig_ops (siglen = 32));
450450

451451
-- select messages in section 1 OR 2 - OVERLAP operator
452452
SELECT message.mid FROM message WHERE message.sections && '{1,2}';

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