Implementation of UPDATE

From: Diogo Biazus <diogo(at)ikono(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Implementation of UPDATE
Date: 2002-08-20 18:22:27
Message-ID: 3D6288E3.4060001@ikono.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)ikono(dot)com(dot)br
Ikono Sistemas e Automação
http://www.ikono.com.br

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-08-20 18:38:21 Off-topic: a round of applause for Marc
Previous Message Fernando Schapachnik 2002-08-20 13:23:13 Re: @(#) Mordred Labs advisory 0x0001: Buffer overflow in PostgreSQL (fwd)