mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Invent ResourceOwner mechanism as per my recent proposal, and use it to
keep track of portal-related resources separately from transaction-related resources. This allows cursors to work in a somewhat sane fashion with nested transactions. For now, cursor behavior is non-subtransactional, that is a cursor's state does not roll back if you abort a subtransaction that fetched from the cursor. We might want to change that later.
This commit is contained in:
@ -75,7 +75,7 @@ user_write_unlock_oid(Oid oid)
|
||||
int
|
||||
user_unlock_all(void)
|
||||
{
|
||||
return LockReleaseAll(USER_LOCKMETHOD, MyProc, ReleaseAll, 0, NULL);
|
||||
return LockReleaseAll(USER_LOCKMETHOD, MyProc, true);
|
||||
}
|
||||
|
||||
/* end of file */
|
||||
|
Reference in New Issue
Block a user