Re: [GENERAL] Partial Index Too Literal?

2008-06-27 Thread Phillip Mills
- On *Thu, 6/26/08, Phillip Mills <[EMAIL PROTECTED]>* wrote: > > From: Phillip Mills <[EMAIL PROTECTED]> > Subject: [GENERAL] Partial Index Too Literal? > To: pgsql-general@postgresql.org > Date: Thursday, June 26, 2008, 7:24 PM > > > Under somewhat unusual circu

Re: [GENERAL] Partial Index Too Literal?

2008-06-26 Thread Lennin Caro
use this explain analyze select * from result where active = 't'; --- On Thu, 6/26/08, Phillip Mills <[EMAIL PROTECTED]> wrote: From: Phillip Mills <[EMAIL PROTECTED]> Subject: [GENERAL] Partial Index Too Literal? To: pgsql-general@postgresql.org Date: Thursday, June 26

Re: [GENERAL] Partial Index Too Literal?

2008-06-26 Thread Martijn van Oosterhout
On Thu, Jun 26, 2008 at 03:24:41PM -0400, Phillip Mills wrote: > dev=# explain analyze select * from result where active = true; > dev=# explain analyze select * from result where active is true; > This is version 8.2.6. Is there something I'm missing that could make these > queries ever produce

[GENERAL] Partial Index Too Literal?

2008-06-26 Thread Phillip Mills
Under somewhat unusual circumstances, rows in one of our tables have an 'active' flag with a true value. We check for these relatively often since they represent cases that need special handling. We've found through testing that having a partial index on that field works well. What seems odd to