Re: Reverse Key Index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sven R(dot) Kunze" <srkunze(at)tbz-pariv(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Reverse Key Index
Date: 2015-02-14 18:18:19
Message-ID: 7978.1423937899@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Sven R. Kunze" <srkunze(at)tbz-pariv(dot)de> writes:
> does PostgreSQL support the concept of reverse key indexing as described
> here? I couldn't find any documentation on this yet.

> http://www.toadworld.com/platforms/oracle/w/wiki/11075.reverse-key-index-from-the-concept-to-internals.aspx

There's nothing built-in for that (and frankly, it doesn't sound useful
enough that we'd ever add it). You could get the effect easily enough
with an expression index on a byte-reversing function. A related thing
that people often do is create an index on a hash function.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Sven R. Kunze 2015-02-14 18:35:05 Re: Reverse Key Index
Previous Message Sven R. Kunze 2015-02-14 18:13:10 Reverse Key Index