RE: [GENERAL] Long update query ?

Taral <taral@mail.utexas.edu>

From: "Taral" <taral@mail.utexas.edu>
To: "David Hartwig" <daveh@insightdist.com>, "Sergei Chernev" <ser@nsu.ru>
Cc: <pgsql-general@postgreSQL.org>
Date: 1998-09-28T17:15:01Z
Lists: pgsql-hackers, 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