Re: Small bug on CREATE EXTENSION pgq...

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Small bug on CREATE EXTENSION pgq...
Дата
Msg-id
16695.1422505551@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Small bug on CREATE EXTENSION pgq... Jerry Sievers <gsievers19@comcast.net>
Re: Small bug on CREATE EXTENSION pgq... David G Johnston <david.g.johnston@gmail.com>
Re: Small bug on CREATE EXTENSION pgq... Stephen Frost <sfrost@snowman.net>
Re: Small bug on CREATE EXTENSION pgq... David Johnston <david.g.johnston@gmail.com>
Re: Small bug on CREATE EXTENSION pgq... Stephen Frost <sfrost@snowman.net>
Re: Small bug on CREATE EXTENSION pgq... Tom Lane <tgl@sss.pgh.pa.us>
Re: Small bug on CREATE EXTENSION pgq... Jim Nasby <Jim.Nasby@BlueTreble.com>
Stephen Frost  writes:
> * David Johnston (david.g.johnston@gmail.com) wrote:
>> Fair enough but "reset" to what?  I don't know the internal mechanics but
>> if the session default is "warning" and a local change sets it to "notice"
>> then an unconditional reset would not get us back to the intended value.

> Yeah, we'd really want to reset it to "what it was before."

An extension script runs as a single transaction, so SET LOCAL could've
been used to accomplish the result without trashing the session-lifespan
setting.

I'm not sure whether or not there was good reason to be changing the
setting at all, but it's entirely on the extension script's head that
it didn't do this in a less invasive way.
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Stephen Frost
Дата:
От: Josh Berkus
Дата:
Сообщение: Re: pg_upgrade and rsync
FAQ