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/[email protected]
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

+1-1
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)