pgsql: Fix handling of errors in libpq pipelines

2023-12-05 Thread Alvaro Herrera
Fix handling of errors in libpq pipelines The logic to keep the libpq command queue in sync with queries that have been processed had a bug when errors were returned for reasons other than problems in queries -- for example, when a connection is lost. We incorrectly consumed an element from the c

pgsql: Fix handling of errors in libpq pipelines

2023-12-05 Thread Alvaro Herrera
Fix handling of errors in libpq pipelines The logic to keep the libpq command queue in sync with queries that have been processed had a bug when errors were returned for reasons other than problems in queries -- for example, when a connection is lost. We incorrectly consumed an element from the c

pgsql: Fix handling of errors in libpq pipelines

2023-12-05 Thread Alvaro Herrera
Fix handling of errors in libpq pipelines The logic to keep the libpq command queue in sync with queries that have been processed had a bug when errors were returned for reasons other than problems in queries -- for example, when a connection is lost. We incorrectly consumed an element from the c

pgsql: Fix handling of errors in libpq pipelines

2023-12-05 Thread Alvaro Herrera
Fix handling of errors in libpq pipelines The logic to keep the libpq command queue in sync with queries that have been processed had a bug when errors were returned for reasons other than problems in queries -- for example, when a connection is lost. We incorrectly consumed an element from the c