Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> As committed, DISCARD ALL does everything but cannot be issued inside a
> transaction block.
> I'd like to propose that DISCARD ALL also issue a ROLLBACK command if it
> is issued from within a transaction block.
That was *intentional* to prevent mistakes. Somebody who wants the
above behavior can send "ROLLBACK; DISCARD ALL".
regards, tom lane