Re: How to know if an INSERT is done inside a function?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: How to know if an INSERT is done inside a function?
Дата
Msg-id AANLkTimDqlgysUdEbm5aEUmEZXyRCX0BQ6D0A89IyRwF@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to know if an INSERT is done inside a function?  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: How to know if an INSERT is done inside a function?  (Andre Lopes <lopes80andre@gmail.com>)
Список pgsql-general
2010/7/4 Merlin Moncure <mmoncure@gmail.com>:
> On Sun, Jul 4, 2010 at 7:25 AM, Andre Lopes <lopes80andre@gmail.com> wrote:
>> Great! That [begin exception end] is what I need!
>>
>> Thank you Pavel.
>>
>> Best Regards,
>
> Just a quick heads up: functions with exception handlers tend to be
> more expensive than those without, even if the exception doesn't fire.

yes, better to use prepared statement and read diagnostics info from PHP

Pavel

>
> merlin
>

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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: Open Source Forum Software using PostgreSQL?
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Open Source Forum Software using PostgreSQL?