Thread: pgsql/src/backend/tcop postgres.c

pgsql/src/backend/tcop postgres.c

From
tgl@postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    02/02/27 18:16:09

Modified files:
    src/backend/tcop: postgres.c

Log message:
    Tweak pg_exec_query_string so that we close down transaction command
    before reporting command-complete message for the final command of a
    query string.  This way, any errors detected during finish_xact_command
    (such as RI violations) will appear to be part of the final command,
    rather than coming out after the command is reported complete.  This
    avoids confusing PQendcopy and other not-overly-bright clients.
    Per Lee Harr's bug report of 25-Feb-02.