aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-17 15:53:59 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-17 15:53:59 +0900
commit061cc7eacac15c4bcd4447a238e16a6e0ea9c6bb (patch)
tree8a6b8b0f99b732d3ccebc77df1b38493f3877a1f
parent2197d06224a14dba544e05e3df1efcca83bdd9ef (diff)
downloadpostgresql-061cc7eacac15c4bcd4447a238e16a6e0ea9c6bb.tar.gz
postgresql-061cc7eacac15c4bcd4447a238e16a6e0ea9c6bb.zip
Remove some comments related to pqPipelineSync() and PQsendPipelineSync()
These comments explained how these functions behave internally, and the equivalent is described in the documentation section dedicated to the pipeline mode of libpq. Let's remove these comments, getting rid of the duplication with the docs. Reported-by: Álvaro Herrera Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/202401150949.wq7ynlmqxphy@alvherre.pgsql
-rw-r--r--src/interfaces/libpq/fe-exec.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 7fbce907dba..c02a9180b24 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -3247,23 +3247,6 @@ PQsendPipelineSync(PGconn *conn)
/*
* Workhorse function for PQpipelineSync and PQsendPipelineSync.
*
- * It's legal to start submitting more commands in the pipeline immediately,
- * without waiting for the results of the current pipeline. There's no need to
- * end pipeline mode and start it again.
- *
- * If a command in a pipeline fails, every subsequent command up to and
- * including the result to the Sync message sent by pqPipelineSyncInternal
- * gets set to PGRES_PIPELINE_ABORTED state. If the whole pipeline is
- * processed without error, a PGresult with PGRES_PIPELINE_SYNC is produced.
- *
- * Queries can already have been sent before pqPipelineSyncInternal is called,
- * but pqPipelineSyncInternal needs to be called before retrieving command
- * results.
- *
- * The connection will remain in pipeline mode and unavailable for new
- * synchronous command execution functions until all results from the pipeline
- * are processed by the client.
- *
* immediate_flush controls if the flush happens immediately after sending the
* Sync message or not.
*/