GUC failure on exception

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема GUC failure on exception
Дата
Msg-id 4B4FB92D.5040308@dunslane.net
обсуждение исходный текст
Ответы Re: GUC failure on exception  (Andrew Dunstan <andrew@dunslane.net>)
Re: GUC failure on exception  (Tim Bunce <Tim.Bunce@pobox.com>)
Список pgsql-hackers
Tim Bunce just showed me the following oddity:
   andrew=# SET SESSION plperl.use_strict = on;   SET   andrew=# SHOW plperl.use_strict;    plperl.use_strict
-------------------   on   (1 row)
 
   andrew=# DO $$ elog(ERROR,"error") $$ language plperl;   ERROR:  error at line 1.   CONTEXT:  PL/Perl anonymous code
block  andrew=# SHOW plperl.use_strict;    plperl.use_strict   -------------------    off   (1 row)
 


Somehow we have lost the setting, because the first use of plperl, which 
called the plperl init code, failed.

It appears that whatever rolls it back forgets to put the GUC setting 
back as it was, and now it's lost, which is pretty darn ugly. And you 
can now run code which fails the 'strict' tests.

If anyone has a quick idea about how to fix that would be nice. 
Otherwise I'll try to delve into it as time permits.

cheers

andrew


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

Предыдущее
От: Tim Bunce
Дата:
Сообщение: Add on_trusted_init and on_untrusted_init to plperl [PATCH]
Следующее
От: KaiGai Kohei
Дата:
Сообщение: Re: [PATCH] remove redundant ownership checks