public inbox for [email protected]
help / color / mirror / Atom feedFrom: Zach Aysan <[email protected]>
To: [email protected]
Subject: Reverse btree indexes
Date: Tue, 22 Jun 2021 14:46:52 -0400
Message-ID: <CABYkO2Bfg6sJviiOCBze0fJ5720Oo3VjRnVtVNKM-0i0exALVg@mail.gmail.com> (raw)
Hey there! Thanks for putting together such wonderful documentation. I have
a small suggestion for improvement.
*Page:* https://www.postgresql.org/docs/13/indexes-types.html
*Existing language:*
for example, col LIKE 'foo%' or col ~ '^foo', but not col LIKE '%bar'.
*Desired improvement:*
for example, col LIKE 'foo%' or col ~ '^foo', but not col LIKE '%bar',
> which would require a reversed index on the field. Postgres will
> automatically use the reverse index for LIKE '%bar'
*Or if it doesn't:*
> for example, col LIKE 'foo%' or col ~ '^foo', but not col LIKE '%bar',
> which would require a reversed index on the field. To use the reversed
> index, query with reverse(col) like reverse('%bar').
I hope you all have a great day!
Zach
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Reverse btree indexes
In-Reply-To: <CABYkO2Bfg6sJviiOCBze0fJ5720Oo3VjRnVtVNKM-0i0exALVg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox