@@ -366,7 +366,7 @@ typedef struct OutputPluginCallbacks
366
366
LogicalDecodeShutdownCB shutdown_cb;
367
367
} OutputPluginCallbacks;
368
368
369
- typedef void (*LogicalOutputPluginInit)(struct OutputPluginCallbacks *cb);
369
+ typedef void (*LogicalOutputPluginInit) (struct OutputPluginCallbacks *cb);
370
370
</programlisting>
371
371
The <function>begin_cb</function>, <function>change_cb</function>
372
372
and <function>commit_cb</function> callbacks are required,
@@ -450,11 +450,9 @@ CREATE TABLE another_catalog_table(data text) WITH (user_catalog_table = true);
450
450
a replication slot is created or asked to stream changes, independent
451
451
of the number of changes that are ready to be put out.
452
452
<programlisting>
453
- typedef void (*LogicalDecodeStartupCB) (
454
- struct LogicalDecodingContext *ctx,
455
- OutputPluginOptions *options,
456
- bool is_init
457
- );
453
+ typedef void (*LogicalDecodeStartupCB) (struct LogicalDecodingContext *ctx,
454
+ OutputPluginOptions *options,
455
+ bool is_init);
458
456
</programlisting>
459
457
The <literal>is_init</literal> parameter will be true when the
460
458
replication slot is being created and false
@@ -489,9 +487,7 @@ typedef struct OutputPluginOptions
489
487
be used to deallocate resources private to the output plugin. The slot
490
488
isn't necessarily being dropped, streaming is just being stopped.
491
489
<programlisting>
492
- typedef void (*LogicalDecodeShutdownCB) (
493
- struct LogicalDecodingContext *ctx
494
- );
490
+ typedef void (*LogicalDecodeShutdownCB) (struct LogicalDecodingContext *ctx);
495
491
</programlisting>
496
492
</para>
497
493
</sect3>
@@ -504,10 +500,8 @@ typedef void (*LogicalDecodeShutdownCB) (
504
500
start of a committed transaction has been decoded. Aborted transactions
505
501
and their contents never get decoded.
506
502
<programlisting>
507
- typedef void (*LogicalDecodeBeginCB) (
508
- struct LogicalDecodingContext *,
509
- ReorderBufferTXN *txn
510
- );
503
+ typedef void (*LogicalDecodeBeginCB) (struct LogicalDecodingContext *ctx,
504
+ ReorderBufferTXN *txn);
511
505
</programlisting>
512
506
The <parameter>txn</parameter> parameter contains meta information about
513
507
the transaction, like the time stamp at which it has been committed and
@@ -525,10 +519,9 @@ typedef void (*LogicalDecodeBeginCB) (
525
519
rows will have been called before this, if there have been any modified
526
520
rows.
527
521
<programlisting>
528
- typedef void (*LogicalDecodeCommitCB) (
529
- struct LogicalDecodingContext *,
530
- ReorderBufferTXN *txn
531
- );
522
+ typedef void (*LogicalDecodeCommitCB) (struct LogicalDecodingContext *ctx,
523
+ ReorderBufferTXN *txn,
524
+ XLogRecPtr commit_lsn);
532
525
</programlisting>
533
526
</para>
534
527
</sect3>
@@ -544,12 +537,10 @@ typedef void (*LogicalDecodeCommitCB) (
544
537
several rows at once the callback will be called individually for each
545
538
row.
546
539
<programlisting>
547
- typedef void (*LogicalDecodeChangeCB) (
548
- struct LogicalDecodingContext *ctx,
549
- ReorderBufferTXN *txn,
550
- Relation relation,
551
- ReorderBufferChange *change
552
- );
540
+ typedef void (*LogicalDecodeChangeCB) (struct LogicalDecodingContext *ctx,
541
+ ReorderBufferTXN *txn,
542
+ Relation relation,
543
+ ReorderBufferChange *change);
553
544
</programlisting>
554
545
The <parameter>ctx</parameter> and <parameter>txn</parameter> parameters
555
546
have the same contents as for the <function>begin_cb</function>
0 commit comments