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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(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:14:04
Message-ID: 200408201814.i7KIE4Z10470@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> "Peter Haworth" <pmh(at)edison(dot)ioppublishing(dot)com> writes:
> > ... why couldn't an explicit IS NULL test
> > be allowed to use the index?
>
> It could, if someone cared to puzzle out a way to integrate IS NULL into
> the index opclass and access method API infrastructure. Right now all
> that stuff assumes that indexable operators are, well, operators (and I
> think there are places that assume they must be binary operators, to
> boot).
>
> I've looked at this once or twice but always decided that the
> bang-for-the-buck ratio was too low compared to other open problems ...

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.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Responses

Browse pgsql-general by date

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