git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 237d011)
Fix a typo and some doc indentation related to libpq pipeline functions
2024年1月16日 00:17:51 +0000 (09:17 +0900)
2024年1月16日 00:17:51 +0000 (09:17 +0900)
Noticed while reviewing the area for a different patch. This is
cosmetic, so no backpatch is done.


diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 21195e0e728b55a1af1f95d621fb01d365e0ca67..0bbb84744e655bf77ecdf4e9d1cb56dfdb02c28f 100644 (file)
--- 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 106d14e6eed3293cb7c80234f9ce14dbecbc6708..e1768d5475d3e18d3d0a1c26f2b54899d1f8eb2e 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /