Re: How to setup default value "0000-00-00" for "date" - Mailing list pgsql-general

From Tom Lane
Subject Re: How to setup default value "0000-00-00" for "date"
Date
Msg-id 1198.1093026259@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to setup default value "0000-00-00" for "date"  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I know we index NULL values in multi-column indexes, but do we
> currently even store the rows that have only NULLs in a the index.

btree does.  I don't think any of the other index AMs do.  hash could
probably be made to without much trouble (just decree a hash value,
say zero, for nulls).  But I dunno what rtree or gist would do with a
leading-column null.

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: How to setup default value "0000-00-00" for "date"
Next
From: Jeff
Date:
Subject: Re: Postgres filling up hard drive with swap files