Re: Update join performance issues

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Update join performance issues
Дата
Msg-id jlfdag$o7s$2@dough.gmane.org
обсуждение исходный текст
Ответ на Update join performance issues  (Kevin Kempter <cs_dba@consistentstate.com>)
Список pgsql-performance
Kevin Kempter wrote on 03.04.2012 19:29:
> Hi All;
>
> I have a query that wants to update a table based on a join like this:
>
> update test_one
> set f_key = t.f_key
> from
> upd_temp1 t,
> test_one t2
> where
> t.id_number = t2.id_number
>
> upd_temp1 has 248,762 rows
> test_one has 248,762 rows
>

To extend on what Kevin has already answere:

Quote from the manual:
   "Note that the target table must not appear in the from_list, unless you intend a self-join"


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Update join performance issues
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: H800 + md1200 Performance problem