* pqPipelineFlush * * In pipeline mode, data will be flushed only when the out buffer reaches the * threshold value. In non-pipeline mode, it behaves as stock pqFlush. * * Returns 0 on success. */
| 3816 | * Returns 0 on success. |
| 3817 | */ |
| 3818 | static int |
| 3819 | pqPipelineFlush(PGconn *conn) |
| 3820 | { |
| 3821 | if ((conn->pipelineStatus != PQ_PIPELINE_ON) || |
| 3822 | (conn->outCount >= OUTBUFFER_THRESHOLD)) |
| 3823 | return pqFlush(conn); |
| 3824 | return 0; |
| 3825 | } |
| 3826 | |
| 3827 | |
| 3828 | /* |
no test coverage detected