Thread: pgsql: Fix core dump in duration logging for a V3-protocol Execute

pgsql: Fix core dump in duration logging for a V3-protocol Execute

From
tgl@postgresql.org (Tom Lane)
Date:
Log Message:
-----------
Fix core dump in duration logging for a V3-protocol Execute message
when what's being executed is a COMMIT or ROLLBACK.  Per report from
Sergey Koposov.  Backpatch to 8.1; 8.0 and before don't have the bug
due to lack of any logging at all here.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/tcop:
        postgres.c (r1.468.2.5 -> r1.468.2.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/tcop/postgres.c.diff?r1=1.468.2.5&r2=1.468.2.6)