doc: Fix up spacing around verbatim DocBook elements
This commit is contained in:
parent
f59b58e2a1
commit
f7c09706c1
|
@ -5437,18 +5437,18 @@ int PQpipelineSync(PGconn *conn);
|
||||||
round-trip to get the results it needs. However, it's often possible to
|
round-trip to get the results it needs. However, it's often possible to
|
||||||
adjust the client design to exchange the required information server-side.
|
adjust the client design to exchange the required information server-side.
|
||||||
Read-modify-write cycles are especially good candidates; for example:
|
Read-modify-write cycles are especially good candidates; for example:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
BEGIN;
|
BEGIN;
|
||||||
SELECT x FROM mytable WHERE id = 42 FOR UPDATE;
|
SELECT x FROM mytable WHERE id = 42 FOR UPDATE;
|
||||||
-- result: x=2
|
-- result: x=2
|
||||||
-- client adds 1 to x:
|
-- client adds 1 to x:
|
||||||
UPDATE mytable SET x = 3 WHERE id = 42;
|
UPDATE mytable SET x = 3 WHERE id = 42;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
could be much more efficiently done with:
|
could be much more efficiently done with:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
UPDATE mytable SET x = x + 1 WHERE id = 42;
|
UPDATE mytable SET x = x + 1 WHERE id = 42;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
|
|
@ -830,10 +830,10 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
|
||||||
check if the plugin has already received this <command>PREPARE</command>
|
check if the plugin has already received this <command>PREPARE</command>
|
||||||
in which case it can either error out or skip the remaining changes of
|
in which case it can either error out or skip the remaining changes of
|
||||||
the transaction.
|
the transaction.
|
||||||
<programlisting>
|
<programlisting>
|
||||||
typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
|
typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
|
||||||
ReorderBufferTXN *txn);
|
ReorderBufferTXN *txn);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -847,11 +847,11 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
|
||||||
rows will have been called before this, if there have been any modified
|
rows will have been called before this, if there have been any modified
|
||||||
rows. The <parameter>gid</parameter> field, which is part of the
|
rows. The <parameter>gid</parameter> field, which is part of the
|
||||||
<parameter>txn</parameter> parameter, can be used in this callback.
|
<parameter>txn</parameter> parameter, can be used in this callback.
|
||||||
<programlisting>
|
<programlisting>
|
||||||
typedef void (*LogicalDecodePrepareCB) (struct LogicalDecodingContext *ctx,
|
typedef void (*LogicalDecodePrepareCB) (struct LogicalDecodingContext *ctx,
|
||||||
ReorderBufferTXN *txn,
|
ReorderBufferTXN *txn,
|
||||||
XLogRecPtr prepare_lsn);
|
XLogRecPtr prepare_lsn);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -863,11 +863,11 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
|
||||||
whenever a transaction <command>COMMIT PREPARED</command> has been decoded.
|
whenever a transaction <command>COMMIT PREPARED</command> has been decoded.
|
||||||
The <parameter>gid</parameter> field, which is part of the
|
The <parameter>gid</parameter> field, which is part of the
|
||||||
<parameter>txn</parameter> parameter, can be used in this callback.
|
<parameter>txn</parameter> parameter, can be used in this callback.
|
||||||
<programlisting>
|
<programlisting>
|
||||||
typedef void (*LogicalDecodeCommitPreparedCB) (struct LogicalDecodingContext *ctx,
|
typedef void (*LogicalDecodeCommitPreparedCB) (struct LogicalDecodingContext *ctx,
|
||||||
ReorderBufferTXN *txn,
|
ReorderBufferTXN *txn,
|
||||||
XLogRecPtr commit_lsn);
|
XLogRecPtr commit_lsn);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
@ -885,12 +885,12 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
|
||||||
it can apply the rollback, otherwise, it can skip the rollback operation. The
|
it can apply the rollback, otherwise, it can skip the rollback operation. The
|
||||||
<parameter>gid</parameter> alone is not sufficient because the downstream
|
<parameter>gid</parameter> alone is not sufficient because the downstream
|
||||||
node can have a prepared transaction with same identifier.
|
node can have a prepared transaction with same identifier.
|
||||||
<programlisting>
|
<programlisting>
|
||||||
typedef void (*LogicalDecodeRollbackPreparedCB) (struct LogicalDecodingContext *ctx,
|
typedef void (*LogicalDecodeRollbackPreparedCB) (struct LogicalDecodingContext *ctx,
|
||||||
ReorderBufferTXN *txn,
|
ReorderBufferTXN *txn,
|
||||||
XLogRecPtr prepare_end_lsn,
|
XLogRecPtr prepare_end_lsn,
|
||||||
TimestampTz prepare_time);
|
TimestampTz prepare_time);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
</sect3>
|
</sect3>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue