Re: HOT patch, missing things

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: HOT patch, missing things
Дата
Msg-id 17274.1186679674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: HOT patch, missing things  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: HOT patch, missing things
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> I agree about the costs for evaluating the expressions. But a COLD update is
> certainly going to have to evaluate both expressions once. The only additional
> cost here is that HOT is going to have to evaluate the *old* expression as
> well. So it's at worst twice as expensive as a normal COLD update.

What's bothering me is the case where we evaluate the expression twice,
find it doesn't match, and fall through to the COLD update logic which
will do it a third time.

> I think I'm leaning towards doing a binary comparison of the
> parameters to the expressions.

Yeah, we could simply insist on no change to any column that's used by
any of the expressions.  That would be cheap to test.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: HOT patch, missing things
Следующее
От: Tom Lane
Дата:
Сообщение: Re: change name of redirect_stderr?