> > In the second place, we already grab locks that we do not release till
> > end of xact for all user-level queries. The problem is that we grab
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Even for select?
No. Tom plans to change that, and I still think this is a bad idea.
> > them too late, ie, in the executor. I'm just planning to move up the
> > grab till first use.
This would be good.
> BTW, what about indices?
Same here, would need to be released after each readonly statement.
Andreas