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