Dmitriy Agafonov <Dmitriy(dot)Agafonov(at)msdw(dot)com> writes:
> Stupid question - what's the uniqueness scope of a cursor name. Is it
> connection (as, I assume, it's supposed to be)
Yup, per-connection (actually per-transaction, since cursors don't
survive across transactions).
regards, tom lane