Re: Update on tables when the row doesn't change

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Update on tables when the row doesn't change
Дата
Msg-id 1117037314.31821.328.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Re: Update on tables when the row doesn't change  ("Tim Vadnais" <tvadnais@earthlink.net>)
Список pgsql-general
On Wed, 2005-05-25 at 10:41, Tim Vadnais wrote:

> >> Why does Postgres perform an update on the table even
> >> if no data changes?
> >> Can I circumvent this behaviour of Postgres?
> >>
> Hi All,
>
> Can someone please address this aspect of Sebastian's email?  I, too, am
> interested in the response.
>

Actually, I believe it was addressed by Tom, when he said that it would
be more costly to check every single update to see if there WAS a change
before applying it than to just apply the changes every time.

I concur.  Can you imagine slowing down ALL updates by 5% or something
like that just to prevent the rare case where an update didn't actually
change a value?

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: triggers/functions across databases
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Update on tables when the row doesn't change