Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> WARNING: COMMIT: no transaction in progress
> COMMIT
> The WARNING happens with SHOW and RESET too. I wonder if we should
> suppress the WARNING of a COMMIT with no statements when autocommit is
> off.
I don't think so; that will make it quite hard to check whether a
transaction is open.
regards, tom lane