"Joshua D. Drake" <jd@commandprompt.com> writes:
> At what point is the exclusive lock released? When I create a new
> savepoint? On COMMIT of the entire transaction?
COMMIT, or rollback to a savepoint before the original shared lock
was taken.
regards, tom lane