Re: relcache refcount - Mailing list pgsql-hackers

From Tom Lane
Subject Re: relcache refcount
Date
Msg-id 20276.1084536178@sss.pgh.pa.us
Whole thread Raw
In response to Re: relcache refcount  ("Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>)
List pgsql-hackers
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> Why can't we keep all locks until main tx end ?

For committed subtransactions we have to do that, yes, but for aborted
subtransactions we must release.  Otherwise you can't implement a retry
loop around a potentially-deadlocking operation.

> (I am assuming that a deadlock will still break the whole tx)

Wrong.  We might as well not bother with the entire project.
        regards, tom lane


pgsql-hackers by date:

Previous
From: pgsql@mohawksoft.com
Date:
Subject: Re: [pgsql-hackers-win32] Sync vs. fsync during
Next
From: Fabien COELHO
Date:
Subject: Re: Bogus permissions display in 7.4