Re: Correct syntax to create partial index on a boolean column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Christensen <mike(at)kitchenpc(dot)com>
Cc: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>, Alban Hertroys <haramrae(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Correct syntax to create partial index on a boolean column
Date: 2011-12-15 15:28:14
Message-ID: 5971.1323962894@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Christensen <mike(at)kitchenpc(dot)com> writes:
> BTW, this table (RecipeMetadata) will only ever be used in a join. I
> will never query it directly. But I'll query Recipes and join in
> RecipeMetadata.

In that case possibly you want the join key to be the index payload.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jay Levitt 2011-12-15 15:31:32 Re: Correct syntax to create partial index on a boolean column
Previous Message Adrian Klaver 2011-12-15 15:28:03 Re: Server/Data Migration Advice