aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-16 09:17:51 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-16 09:17:51 +0900
commit83eb244e419efd43959fdd544ff8c30e175565ef (patch)
tree87828a9d9c15339a4d7c78161b4bb6c815884c75
parent237d01139b8a2ad26036d9025ae8e8e99b53e08c (diff)
downloadpostgresql-83eb244e419efd43959fdd544ff8c30e175565ef.tar.gz
postgresql-83eb244e419efd43959fdd544ff8c30e175565ef.zip
Fix a typo and some doc indentation related to libpq pipeline functions
Noticed while reviewing the area for a different patch. This is cosmetic, so no backpatch is done.
-rw-r--r--doc/src/sgml/libpq.sgml36
-rw-r--r--src/interfaces/libpq/fe-exec.c2
2 files changed, 19 insertions, 19 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 21195e0e728..0bbb84744e6 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -5813,28 +5813,28 @@ int PQpipelineSync(PGconn *conn);
<varlistentry id="libpq-PQsendFlushRequest">
<term><function>PQsendFlushRequest</function><indexterm><primary>PQsendFlushRequest</primary></indexterm></term>
- <listitem>
- <para>
- Sends a request for the server to flush its output buffer.
+ <listitem>
+ <para>
+ Sends a request for the server to flush its output buffer.
<synopsis>
int PQsendFlushRequest(PGconn *conn);
</synopsis>
- </para>
+ </para>
- <para>
- Returns 1 for success. Returns 0 on any failure.
- </para>
- <para>
- The server flushes its output buffer automatically as a result of
- <function>PQpipelineSync</function> being called, or
- on any request when not in pipeline mode; this function is useful
- to cause the server to flush its output buffer in pipeline mode
- without establishing a synchronization point.
- Note that the request is not itself flushed to the server automatically;
- use <function>PQflush</function> if necessary.
- </para>
- </listitem>
- </varlistentry>
+ <para>
+ Returns 1 for success. Returns 0 on any failure.
+ </para>
+ <para>
+ The server flushes its output buffer automatically as a result of
+ <function>PQpipelineSync</function> being called, or
+ on any request when not in pipeline mode; this function is useful
+ to cause the server to flush its output buffer in pipeline mode
+ without establishing a synchronization point.
+ Note that the request is not itself flushed to the server automatically;
+ use <function>PQflush</function> if necessary.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</sect2>
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 106d14e6eed..e1768d5475d 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -3235,7 +3235,7 @@ pqPipelineProcessQueue(PGconn *conn)
* error, a PGresult with PGRES_PIPELINE_SYNC is produced.
*
* Queries can already have been sent before PQpipelineSync is called, but
- * PQpipelineSync need to be called before retrieving command results.
+ * PQpipelineSync 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