diff options
author | Tom Lane | 2021-06-04 01:07:12 +0000 |
---|---|---|
committer | Tom Lane | 2021-06-04 01:07:20 +0000 |
commit | e4539386decae1c435767a69507cc7cbb11ac3ff (patch) | |
tree | 12463922d17ace5dda2b12bbe003d7048fd06310 | |
parent | 1e809db86b160e697a56bf47358f7733475840d3 (diff) |
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]
-rw-r--r-- | doc/src/sgml/intarray.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/intarray.sgml b/doc/src/sgml/intarray.sgml index dfe98279c0..f930c08eeb 100644 --- a/doc/src/sgml/intarray.sgml +++ b/doc/src/sgml/intarray.sgml @@ -446,7 +446,7 @@ 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 && '{1,2}'; |