Re: [bugfix] DISCARD ALL does not release advisory locks

Поиск
Список
Период
Сортировка
От Guillaume Smet
Тема Re: [bugfix] DISCARD ALL does not release advisory locks
Дата
Msg-id 1d4e0c10811261127s75430340qf9ff0d896b9eed1a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [bugfix] DISCARD ALL does not release advisory locks  (Gregory Stark <stark@enterprisedb.com>)
Ответы Re: [bugfix] DISCARD ALL does not release advisory locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Nov 26, 2008 at 8:13 PM, Gregory Stark <stark@enterprisedb.com> wrote:
> DISCARD ALL was specifically added in 8.3 for the purpose of connection
> poolers to be a "big hammer" that exactly emulates a new session. I'm somewhat
> skeptical that there are any applications using it directly at all, and doubly
> so that they would be using it and expecting advisory locks to persist.
>
> I think the second and third points are pretty convincing.

I kinda agree with you. The only problem IMHO is that we described in
the doc exactly what it does and not simply as the big hammer it was
supposed to be. See
http://www.postgresql.org/docs/8.3/interactive/sql-discard.html .

You can't guarantee that nobody checked the doc to see if it discards
advisory locks even if it's highly unlikely.

That said, I'm more for the backpatching too.

-- 
Guillaume


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

Предыдущее
От: Decibel!
Дата:
Сообщение: Re: Simple postgresql.conf wizard
Следующее
От: Decibel!
Дата:
Сообщение: Re: Column reordering in pg_dump