8000 Doc: Improve documentation of stream abort. · postgres/postgres@a4a1f9e · GitHub
[go: up one dir, main page]

Skip to content

Commit a4a1f9e

Browse files
author
Amit Kapila
committed
Doc: Improve documentation of stream abort.
Protocol v4 introduces parallel streaming, which allows Stream Abort messages to include additional abort information such as LSN and timestamp. However, the current documentation only states, "This field is available since protocol version 4," which may misleadingly suggest that the fields are always present when using protocol v4. This patch clarifies that the abort LSN and timestamp are included only when parallel streaming is enabled, even under protocol v4. Author: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Backpatch-through: 16, where it was introduced Discussion: https://postgr.es/m/CAO6_XqoKteQR1AnaR8iPcegbBE+HkAc2-g12rxN04yOt4-2ORg@mail.gmail.com
1 parent d187cab commit a4a1f9e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/src/sgml/protocol.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6936,8 +6936,8 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
69366936
<term>Int64 (XLogRecPtr)</term>
69376937
<listitem>
69386938
<para>
6939-
The LSN of the abort. This field is available since protocol version
6940-
4.
6939+
The LSN of the abort operation, present only when streaming is set to parallel.
6940+
This field is available since protocol version 4.
69416941
</para>
69426942
</listitem>
69436943
</varlistentry>
@@ -6946,9 +6946,9 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
69466946
<term>Int64 (TimestampTz)</term>
69476947
<listitem>
69486948
<para>
6949-
Abort timestamp of the transaction. The value is in number
6950-
of microseconds since PostgreSQL epoch (2000-01-01). This field is
6951-
available since protocol version 4.
6949+
Abort timestamp of the transaction, present only when streaming is set to
6950+
parallel. The value is in number of microseconds since PostgreSQL epoch (2000-01-01).
6951+
This field is available since protocol version 4.
69526952
</para>
69536953
</listitem>
69546954
</varlistentry>

0 commit comments

Comments
 (0)
0