Reverse btree indexes - Mailing list pgsql-docs

From Zach Aysan
Subject Reverse btree indexes
Date
Msg-id CABYkO2Bfg6sJviiOCBze0fJ5720Oo3VjRnVtVNKM-0i0exALVg@mail.gmail.com
Whole thread Raw
Responses Re: Reverse btree indexes  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-docs
Hey there! Thanks for putting together such wonderful documentation. I have a small suggestion for improvement.

 
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
 

pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: Operator function clarification needed
Next
From: "David G. Johnston"
Date:
Subject: Re: Reverse btree indexes