"Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> writes:
> The following is an example which doesn't release the reference count.
> Neither CommitTransaction() nor AbortTransaction() is called after '\q'
> begin;
> declare myc cursor for select * from ..;
> fetch in myc;
> \q
Hmm, you are right. Looks like normal exit from PostgresMain() should,
but does not, call AbortCurrentTransaction(). Any objections?
regards, tom lane