Thread: pgsql-server: Fix not-quite-right Assertion.

pgsql-server: Fix not-quite-right Assertion.

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Fix not-quite-right Assertion.  Did not work at all in extended-query
mode (per complaint from Kris Jurka) and it was only by chance that it
didn't fail in simple-query mode.  A COMMIT or ROLLBACK has to be
executed by a portal, therefore it's wrong to suppose that there aren't
any live portals at CleanupTransaction time.

Modified Files:
--------------
    pgsql-server/src/backend/utils/mmgr:
        portalmem.c (r1.67 -> r1.68)

(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/mmgr/portalmem.c.diff?r1=1.67&r2=1.68)