Re: Is it possible to create an index without keeping the indexed data in a column?

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Is it possible to create an index without keeping the indexed data in a column?
Date: 2014-08-01 07:06:50
Message-ID: 1406876810803-5813499.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Amit Langote wrote
> On Fri, Aug 1, 2014 at 2:50 PM, Amit Langote &lt;

> amitlangote09@

> &gt; wrote:
>>
>> Not sure exactly if it applies here;
>
> Re-reading the OP again, perhaps it doesn't. Sorry about the noise

This is a functional index which lets you store derived data in the index
without having to also store it in the table. Mostly useful for stuff that
is only relevant in the context of searching and not something you would
ever return to the user.

The restriction here is that the raw data still needs to be stored in the
table.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Is-it-possible-to-create-an-index-without-keeping-the-indexed-data-in-a-column-tp5813461p5813499.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G Johnston 2014-08-01 07:14:41 Re: Is it possible to create an index without keeping the indexed data in a column?
Previous Message Larry White 2014-08-01 06:36:36 Re: Very Limited Toast Compression on JSONB (9.4 beta 2)