Skip to content

Commit

Permalink
Lag tracking support
Browse files Browse the repository at this point in the history
See lag times in pg_stat_replication.
  • Loading branch information
nchuxyz authored and eulerto committed Mar 13, 2022
1 parent 665173c commit 53b548a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wal2json.c
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,10 @@ pg_decode_commit_txn(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
{
JsonDecodingData *data = ctx->output_plugin_private;

#if PG_VERSION_NUM >= 100000
OutputPluginUpdateProgress(ctx);
#endif

elog(DEBUG2, "my change counter: " UINT64_FORMAT " ; # of changes: " UINT64_FORMAT " ; # of changes in memory: " UINT64_FORMAT, data->nr_changes, txn->nentries, txn->nentries_mem);
elog(DEBUG2, "# of subxacts: %d", txn->nsubtxns);

Expand Down

0 comments on commit 53b548a

Please sign in to comment.