Implementation of UPDATE

Поиск
Список
Период
Сортировка
От Diogo Biazus
Тема Implementation of UPDATE
Дата
Msg-id 3D6288E3.4060001@ikono.com.br
обсуждение исходный текст
Ответы Re: Implementation of UPDATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi folks,

I was wondering if postgres executes a subquery in an UPDATE clause once
and use the result (of the subquery) for all the updates.

Example:
UPDATE table SET field1 = (SELECT field2 FROM table2 WHERE field3 = '123')

Sorry if it seems to be a stupid question, but sometimes this kind of
update is so slow in my server, that makes me suspicious.

TIA

--
Diogo de Oliveira Biazus
diogo@ikono.com.br
Ikono Sistemas e Automação
http://www.ikono.com.br



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

Предыдущее
От: Fernando Schapachnik
Дата:
Сообщение: Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in PostgreSQL (fwd)
Следующее
От: Tom Lane
Дата:
Сообщение: Off-topic: a round of applause for Marc