• Tom Lane's avatar
    Tweak pg_exec_query_string so that we close down transaction command · fdc60bd9
    Tom Lane authored
    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.
    fdc60bd9
postgres.c 56 KB