Re: How to setup default value "0000-00-00" for "date"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Peter Haworth <pmh(at)edison(dot)ioppublishing(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: How to setup default value "0000-00-00" for "date"
Date: 2004-08-20 18:24:19
Message-ID: 1198.1093026259@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff 2004-08-20 18:28:43 Re: Postgres filling up hard drive with swap files
Previous Message borajetta 2004-08-20 18:23:19 ERROR: duplicate key violates unique constraint "pg_class_oid_index"