diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index cddf6e07531..f083dba49a9 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -3698,14 +3698,15 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput> </para> <para> - Pipeline mode requires the use of the extended query protocol. All - queries need to be sent using the meta-commands - <literal>\bind</literal>, <literal>\bind_named</literal>, - <literal>\close</literal> or <literal>\parse</literal>. While a - pipeline is ongoing, <literal>\sendpipeline</literal> will append the - current query buffer to the pipeline. Other meta-commands like - <literal>\g</literal>, <literal>\gx</literal> or <literal>\gdesc</literal> - are not allowed in pipeline mode. + All queries executed while a pipeline is ongoing use the extended + query protocol. Queries are appended to the pipeline when ending with + a semicolon. The meta-commands <literal>\bind</literal>, + <literal>\bind_named</literal>, <literal>\close</literal> or + <literal>\parse</literal> can be used in an ongoing pipeline. While + a pipeline is ongoing, <literal>\sendpipeline</literal> will append + the current query buffer to the pipeline. Other meta-commands like + <literal>\g</literal>, <literal>\gx</literal> or + <literal>\gdesc</literal> are not allowed in pipeline mode. </para> <para> @@ -3723,10 +3724,7 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput> If provided, only the first <replaceable class="parameter">number_results</replaceable> pending results will be read. If not provided or <literal>0</literal>, all - pending results are read. The commands <literal>\bind</literal>, - <literal>\bind_named</literal>, <literal>\close</literal>, - <literal>\parse</literal> and <literal>\syncpipeline</literal> - generate one result to get. + pending results are read. </para> <para> @@ -3739,6 +3737,7 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput> Example: <programlisting> \startpipeline +SELECT * FROM pg_class; SELECT 1 \bind \sendpipeline \flushrequest \getresults @@ -4513,9 +4512,7 @@ bar <term><varname>PIPELINE_COMMAND_COUNT</varname></term> <listitem> <para> - The number of commands generated by <literal>\bind</literal>, - <literal>\bind_named</literal>, <literal>\close</literal> or - <literal>\parse</literal> queued in an ongoing pipeline. + The number of commands queued in an ongoing pipeline. </para> </listitem> </varlistentry> |