RE: [GENERAL] Long update query ?

Поиск
Список
Период
Сортировка
От Taral
Тема RE: [GENERAL] Long update query ?
Дата
Msg-id 000001bdeb03$86c79d20$3b291f0a@taral
обсуждение исходный текст
Ответ на Re: [GENERAL] Long update query ?  (David Hartwig <daveh@insightdist.com>)
Ответы Re: [GENERAL] Long update query ?  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: David Hartwig
Дата:
Сообщение: Re: [GENERAL] Long update query ?
Следующее
От: Anand Surelia
Дата:
Сообщение: Multiple Triggers