Re: Does update = delete + insert ?

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Does update = delete + insert ?
Дата
Msg-id 6AC6AD90-9779-47AB-9950-40016E9F7E0A@blighty.com
обсуждение исходный текст
Ответ на Does update = delete + insert ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Ответы Re: Does update = delete + insert ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On May 26, 2010, at 11:41 AM, Gauthier, Dave wrote:

> Hi:
>
> Under the hood, does PG implement an update statement as a delete followed by an insert?    I’m at a point in coding
ascript where it would be more expeditious for me to delete/insert a record as opposed to update and want to know if I
loseanything by doing that. 

As far as writes to the table are concerned, yes they're pretty much the same.

If there are triggers on the table, though, they may see the two actions differently.

Cheers,
  Steve

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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Does update = delete + insert ?
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: Does update = delete + insert ?