RE: [GENERAL] Long update query ? - Mailing list pgsql-general

From Taral
Subject RE: [GENERAL] Long update query ?
Date
Msg-id 000001bdeb03$86c79d20$3b291f0a@taral
Whole thread Raw
In response to Re: [GENERAL] Long update query ?  (David Hartwig <daveh@insightdist.com>)
Responses Re: [GENERAL] Long update query ?
List pgsql-general
> This is caused by a semi-well known weakness in the optimizer.
> The optimizer
> rewrites the WHERE clause in conjunctive normal form (CNF):
>
>    (A and B) or (C and D) ==>  (A or C) and (A or D) and (B or C)
> and (B or D)
>

Wouldn't disjunctive normal form be better, since it can be implemented as
the simple union of a set of small queries?

Taral


pgsql-general by date:

Previous
From: David Hartwig
Date:
Subject: Re: [GENERAL] Long update query ?
Next
From: Anand Surelia
Date:
Subject: Multiple Triggers