Re: nulls in GIN index

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: worthy7 <worthy(dot)vii(at)gmail(dot)com>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: nulls in GIN index
Date: 2014-08-11 07:17:37
Message-ID: 53E86E11.9020106@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2014-08-11 07:20:41 Re: Function to know last log write timestamp
Previous Message Andres Freund 2014-08-11 06:54:01 Re: Function to know last log write timestamp