jks(at)selectacast(dot)net writes:> So why isn't the AccessShareLock dropped as soon as the SELECT is over?
In general, locks are held till transaction commit. See any basicdatabase text for the reasons why this is a good idea.
regards, tom lane