Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7c0970

Browse files
committed
doc: Fix up spacing around verbatim DocBook elements
1 parentf59b58e commitf7c0970

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5437,18 +5437,18 @@ int PQpipelineSync(PGconn *conn);
54375437
round-trip to get the results it needs. However, it's often possible to
54385438
adjust the client design to exchange the required information server-side.
54395439
Read-modify-write cycles are especially good candidates; for example:
5440-
<programlisting>
5440+
<programlisting>
54415441
BEGIN;
54425442
SELECT x FROM mytable WHERE id = 42 FOR UPDATE;
54435443
-- result: x=2
54445444
-- client adds 1 to x:
54455445
UPDATE mytable SET x = 3 WHERE id = 42;
54465446
COMMIT;
5447-
</programlisting>
5447+
</programlisting>
54485448
could be much more efficiently done with:
5449-
<programlisting>
5449+
<programlisting>
54505450
UPDATE mytable SET x = x + 1 WHERE id = 42;
5451-
</programlisting>
5451+
</programlisting>
54525452
</para>
54535453

54545454
<para>

‎doc/src/sgml/logicaldecoding.sgml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,10 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
830830
check if the plugin has already received this <command>PREPARE</command>
831831
in which case it can either error out or skip the remaining changes of
832832
the transaction.
833-
<programlisting>
834-
typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
835-
ReorderBufferTXN *txn);
836-
</programlisting>
833+
<programlisting>
834+
typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
835+
ReorderBufferTXN *txn);
836+
</programlisting>
837837
</para>
838838
</sect3>
839839

@@ -847,11 +847,11 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
847847
rows will have been called before this, if there have been any modified
848848
rows. The <parameter>gid</parameter> field, which is part of the
849849
<parameter>txn</parameter> parameter, can be used in this callback.
850-
<programlisting>
851-
typedef void (*LogicalDecodePrepareCB) (struct LogicalDecodingContext *ctx,
852-
ReorderBufferTXN *txn,
853-
XLogRecPtr prepare_lsn);
854-
</programlisting>
850+
<programlisting>
851+
typedef void (*LogicalDecodePrepareCB) (struct LogicalDecodingContext *ctx,
852+
ReorderBufferTXN *txn,
853+
XLogRecPtr prepare_lsn);
854+
</programlisting>
855855
</para>
856856
</sect3>
857857

@@ -863,11 +863,11 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
863863
whenever a transaction <command>COMMIT PREPARED</command> has been decoded.
864864
The <parameter>gid</parameter> field, which is part of the
865865
<parameter>txn</parameter> parameter, can be used in this callback.
866-
<programlisting>
867-
typedef void (*LogicalDecodeCommitPreparedCB) (struct LogicalDecodingContext *ctx,
868-
ReorderBufferTXN *txn,
869-
XLogRecPtr commit_lsn);
870-
</programlisting>
866+
<programlisting>
867+
typedef void (*LogicalDecodeCommitPreparedCB) (struct LogicalDecodingContext *ctx,
868+
ReorderBufferTXN *txn,
869+
XLogRecPtr commit_lsn);
870+
</programlisting>
871871
</para>
872872
</sect3>
873873

@@ -885,12 +885,12 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
885885
it can apply the rollback, otherwise, it can skip the rollback operation. The
886886
<parameter>gid</parameter> alone is not sufficient because the downstream
887887
node can have a prepared transaction with same identifier.
888-
<programlisting>
889-
typedef void (*LogicalDecodeRollbackPreparedCB) (struct LogicalDecodingContext *ctx,
890-
ReorderBufferTXN *txn,
891-
XLogRecPtr prepare_end_lsn,
892-
TimestampTz prepare_time);
893-
</programlisting>
888+
<programlisting>
889+
typedef void (*LogicalDecodeRollbackPreparedCB) (struct LogicalDecodingContext *ctx,
890+
ReorderBufferTXN *txn,
891+
XLogRecPtr prepare_end_lsn,
892+
TimestampTz prepare_time);
893+
</programlisting>
894894
</para>
895895
</sect3>
896896

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp