On Sat, Feb 4, 2017 at 3:11 PM, Petr Jelinek <[email protected]> wrote: > That was the reason why DropSubscription didn't release the lock in the > first place. It was supposed to be released at the end of the > transaction though.
Holding an LWLock until end-of-transaction is a phenomenally bad idea, both because you lose interruptibility and because of the deadlock risk. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
