Re: pgsql-server/doc TODO

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: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/doc TODO
Date: 2004-05-20 03:27:54
Message-ID: 200405200327.i4K3RsE26405@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers


OK, I removed the TODO item. It seem too weird. If others complain
about this, we can document it better. I personally didn't know IS
TRUE/FALSE even worked.

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Tom Lane wrote:
> >> momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian) writes:
> >>> Add:
> >>> * Allow col IS TRUE/FALSE use an index like col = TRUE/FALSE
> >>
> >> They don't have the same semantics.
>
> > Oh, they don't? Nulls?
>
> Right.
>
> On second thought it might be possible to optimize this in a similar
> fashion to the IN optimizations, viz only at top level of WHERE, so that
> you can pretend NULL is the same as FALSE. But it needs some careful
> thought.
>
> A possibly more relevant issue is that indexes on boolean columns are
> seldom of any value anyway, and so optimizing behavior for them seems
> pretty far down the priority list. In my experience it's more useful to
> create an index on another column(s) with the boolean condition as a
> partial-index predicate. In this context you can spell the condition
> however you like, it just has to be the same spelling in queries as in
> the index definition...
>
> regards, tom lane
>

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

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2004-05-20 04:10:47 pgsql-server/doc TODO
Previous Message Bruce Momjian 2004-05-20 03:27:36 pgsql-server/doc TODO