| От | Dimitri Fontaine |
|---|---|
| Тема | Re: Extensions, this time with a patch |
| Дата | |
| Msg-id | m2ocao6gmu.fsf@2ndQuadrant.fr обсуждение |
| Ответ на | Re: Extensions, this time with a patch (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane <tgl@sss.pgh.pa.us> writes:
>> and use the equivalent of SET LOCAL in the CREATE EXTENSION code?
>
> I had assumed that that was how he was doing it ...
I'm currently doing:SetConfigOption("client_min_messages", "warning", PGC_SUSET, PGC_S_SESSION);
And then manually reverting to what was there before the command:SetConfigOption("client_min_messages", old_cmsgs,
PGC_SUSET,PGC_S_SESSION);
The thing is that CREATE EXTENSION can be part of a transaction, so even
SET LOCAL ain't going to work here, we need to reset before continuing
the transaction. I don't know that SET LOCAL is RESET after a savepoint,
so we would still need to care about that "by hand", right?
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера