Doc: fix bogus intarray index example.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Jun 2021 01:07:12 +0000 (21:07 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Jun 2021 01:07:21 +0000 (21:07 -0400)
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

doc/src/sgml/intarray.sgml

index 956c01d7493ffa3740326de3bb37b0b641dd7d67..fdeedc6409e187edf55cfbc3e2c278dca6c904c7 100644 (file)
 CREATE TABLE message (mid INT PRIMARY KEY, sections INT[], ...);
 
 -- create specialized index with signature length of 32 bytes
-CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__int_ops(siglen=32));
+CREATE INDEX message_rdtree_idx ON message USING GIST (sections gist__intbig_ops (siglen = 32));
 
 -- select messages in section 1 OR 2 - OVERLAP operator
 SELECT message.mid FROM message WHERE message.sections &amp;&amp; '{1,2}';