pgsql: Try to defend against the possibility that libpq is still in - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Try to defend against the possibility that libpq is still in
Date
Msg-id 20090807201622.28C6575331E@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Try to defend against the possibility that libpq is still in COPY_IN state
when we reach the post-COPY "pump it dry" error recovery code that was added
2006-11-24.  Per a report from Neil Best, there is at least one code path
in which this occurs, leading to an infinite loop in code that's supposed
to be making it more robust not less so.  A reasonable response seems to be
to call PQputCopyEnd() again, so let's try that.

Back-patch to all versions that contain the cleanup loop.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/bin/psql:
        copy.c (r1.77 -> r1.77.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/copy.c?r1=1.77&r2=1.77.2.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Try to defend against the possibility that libpq is still in
Next
From: bmomjian@pgfoundry.org (User Bmomjian)
Date:
Subject: pg-migrator - pg_migrator: Use the pre-initdb cutoff for testing