Search Postgresql Archives

Re: Is it possible that session lock is not released

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



T <kurt023@xxxxxxxxxxx> writes:
> Now transaction goes to default state, then this backend is killed or some FATAL error happens,
> AbortOutOfAnyTransaction() in ShutdownPostgres() will do nothing since transaction is in default
> state, and session lock on heaprelid is still held after  ShutdownPostgres(), so subsequent operations
> could be blocked by this session lock.

This would only be an issue if we were to accept interrupts between the 
CommitTransactionCommand() and StartTransactionCommand() steps ... which
we don't.  I'll admit it's a tad on the fragile side but I don't see a
bug.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux