Re: tuning a function to insert/retrieve values from a reference table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: tuning a function to insert/retrieve values from a reference table
Дата
Msg-id 20267.1184082080@sss.pgh.pa.us
обсуждение исходный текст
Ответ на tuning a function to insert/retrieve values from a reference table  ("Marc Mamin" <M.Mamin@intershop.de>)
Список pgsql-performance
"Marc Mamin" <M.Mamin@intershop.de> writes:
> Can I optimize this function with:

> a) remove the EXCEPTION clause (Is there an underlying lock that prevent
> concurrent inserts ?)

No.

> b) declare the function being IMMUTABLE ?

Certainly not --- it's got side-effects.

            regards, tom lane

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

Предыдущее
От: "Marc Mamin"
Дата:
Сообщение: tuning a function to insert/retrieve values from a reference table
Следующее
От: Craig James
Дата:
Сообщение: Equivalent queries produce different plans