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

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

"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 ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joe Lester 2004-08-20 18:09:38 Re: Postgres filling up hard drive with swap files
Previous Message Peter Haworth 2004-08-20 17:23:22 Re: How to setup default value "0000-00-00" for "date"