postgres.git / summary / log / commit / refs

commit    061cc7eacac15c4bcd4447a238e16a6e0ea9c6bb
Author:   Michael Paquier <michael@paquier.xyz>
Date:     Wed Jan 17 06:53:59 2024 +0000
First released in: 17.0

    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


src/interfaces/libpq/fe-exec.c | 17 ----------------- 1 file changed, 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. */ [parent: 2197d06224a1]