Re: Facing a problem with SPI

Поиск
Список
Период
Сортировка
От Gurjeet Singh
Тема Re: Facing a problem with SPI
Дата
Msg-id 65937bea0612040732x61e260dq9a88a5d275db5003@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Facing a problem with SPI  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12/4/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> we should remember the CurrentResourceOwner
> across BIST() and RARCST() calls!

As indeed the current callers of them do...

Thanks. I missed that piece of code in pl/pgsql exception handling!!!

So, if I use kludge the code like:

oldResourceOwner = CurrentResourceOwner;
BIST();
... do stuff ...
RARCST();
CurrentResourceOwner = oldResourceOwner;

it would be a standard way of doing it.

Best regards,

--
gurjeet[.singh]@EnterpriseDB.com
singh.gurjeet@{ gmail | hotmail | yahoo }.com

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Facing a problem with SPI
Следующее
От: "Timasmith"
Дата:
Сообщение: Re: postgresql roadmap for horizontal scalability?