summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2023-04-23 13:58:25 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2023-04-23 14:30:09 +0300
commit8bbd0cce92be98de9f4f727b8bf66fe26e5831ea (patch)
tree4b43130fd13ea7a0ffe36e56da62ac872b64cd77 /doc/src
parentcd115c3530bd59bb0305d62ccef1c9504207ff4c (diff)
downloadpostgresql-8bbd0cce92be98de9f4f727b8bf66fe26e5831ea.tar.gz
Validate ltree siglen GiST option to be int-aligned
Unaligned siglen could lead to an unaligned access to subsequent key fields. Backpatch to 13, where opclass options were introduced. Reported-by: Alexander Lakhin Bug: 17847 Discussion: https://postgr.es/m/17847-171232970bea406b%40postgresql.org Reviewed-by: Tom Lane, Pavel Borisov, Alexander Lakhin Backpatch-through: 13
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ltree.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ltree.sgml b/doc/src/sgml/ltree.sgml
index bb66e33944..00a6ae70da 100644
--- a/doc/src/sgml/ltree.sgml
+++ b/doc/src/sgml/ltree.sgml
@@ -637,7 +637,8 @@ Europe &amp; Russia*@ &amp; !Transportation
path labels as a bitmap signature. Its optional integer parameter
<literal>siglen</literal> determines the
signature length in bytes. The default signature length is 8 bytes.
- Valid values of signature length are between 1 and 2024 bytes. Longer
+ The length must be a positive multiple of <type>int</type> alignment
+ (4 bytes on most machines)) up to 2024. Longer
signatures lead to a more precise search (scanning a smaller fraction of the index and
fewer heap pages), at the cost of a larger index.
</para>