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

From Karsten Hilbert
Subject Re: How to setup default value "0000-00-00" for "date"
Date
Msg-id 20040820110430.N598@hermes.hilbert.loc
Whole thread Raw
In response to Re: How to setup default value "0000-00-00" for "date"  (Michal Taborsky <michal@taborsky.cz>)
Responses Re: How to setup default value "0000-00-00" for "date"
List pgsql-general
> I guess you know where it ends--the index is not used for IS [NOT] NULL
> expressions. The obvious workaround was to add DEFAULT value to
> "processed" in form of kind of anchor (we used '-infinity')

Wouldn't it have worked to add an index

    ... WHERE processed IS NULL

and go from there ?

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

pgsql-general by date:

Previous
From: Marek Lewczuk
Date:
Subject: Help with optimizing query
Next
From: John Sidney-Woollett
Date:
Subject: Re: making two tables with identical schemas appear as