pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
About postgresql  pg_advisory_xact_lock use!!!!
2+ messages / 2 participants
[nested] [flat]

* About postgresql  pg_advisory_xact_lock use!!!!
@ 2020-01-07 09:22 andy ye <andy.ye@gtssz.net>
  2020-01-07 12:41 ` Re: About postgresql pg_advisory_xact_lock use!!!! Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: andy ye @ 2020-01-07 09:22 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org

Hello All:

	When I use the pg_advisory_xact_lock provided by postgresql, I often see that the lock part cannot be released and the service is blocked. I would like to know what situations might cause this behavior. Thank you!!!

Your’s Andy




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: About postgresql pg_advisory_xact_lock use!!!!
  2020-01-07 09:22 About postgresql  pg_advisory_xact_lock use!!!! andy ye <andy.ye@gtssz.net>
@ 2020-01-07 12:41 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-01-07 12:41 UTC (permalink / raw)
  To: andy ye <andy.ye@gtssz.net>; +Cc: pgsql-bugs@lists.postgresql.org

andy ye <andy.ye@gtssz.net> writes:
> 	When I use the pg_advisory_xact_lock provided by postgresql, I often see that the lock part cannot be released and the service is blocked. I would like to know what situations might cause this behavior. Thank you!!!

I'd say the odds are just about 100% that you're not closing the
transaction.  Transaction-scope advisory locks are managed exactly
like any ordinary lock in the system, so if we had a bug that allowed
them to not be released at transaction end, there would be obvious
consequences everywhere.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-01-07 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-07 09:22 About postgresql  pg_advisory_xact_lock use!!!! andy ye <andy.ye@gtssz.net>
2020-01-07 12:41 ` Re: About postgresql pg_advisory_xact_lock use!!!! Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox