Re: nulls in GIN index - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: nulls in GIN index
Date
Msg-id 53E86E11.9020106@vmware.com
Whole thread Raw
In response to nulls in GIN index  (worthy7 <worthy.vii@gmail.com>)
Responses Re: nulls in GIN index
List pgsql-hackers
On 08/11/2014 01:19 AM, worthy7 wrote:
>
> http://www.postgresql.org/docs/9.1/static/gin-implementation.html
> """As of PostgreSQL 9.1, NULL key values can be included in the index. Also,
> placeholder NULLs are included in the index for indexed items that are NULL
> or contain no keys according to extractValue. This allows searches that
> should find empty items to do so."""
>
> How do I define an index that includes nulls then?

You don't need to do anything special, any NULL values will be indexed 
automatically.

- Heikki




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Function to know last log write timestamp
Next
From: Fujii Masao
Date:
Subject: Re: Function to know last log write timestamp