BUG #17140: pg_try_advisory_xact_lock produces a WARNINIG on unsuccessful lock

Поиск
Список
Период
Сортировка
От PG Bug reporting form
Тема BUG #17140: pg_try_advisory_xact_lock produces a WARNINIG on unsuccessful lock
Дата
Msg-id 17140-38f50de605441268@postgresql.org
обсуждение исходный текст
Ответы Re: BUG #17140: pg_try_advisory_xact_lock produces a WARNINIG on unsuccessful lock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17140
Logged by:          Yuri Cherio
Email address:      cherio@gmail.com
PostgreSQL version: 13.3
Operating system:   Ubuntu Linux 20.04
Description:

Function "pg_try_advisory_xact_lock" triggers a WARNING message when the
lock is already owned by someone else. The documentation explicitly mentions
warnings on advisory unlock functions and those are understandable - the
developer should not try to unlock what's not owned.

However the advisory lock functions are there for this specific reason -
test whether a resource is locked or not. A negative test should not produce
a WARNING.


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

Предыдущее
От: Kacey Holston
Дата:
Сообщение: Re: Issue with logical replication
Следующее
От: Rainer Tammer
Дата:
Сообщение: Re: Postgres 9.2.13 on AIX 7.1