jackc / jackc/pglogrepl

pglogrepl_demo: how to handle with wal2json plugin output

Open
#21 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
546
Forks
83
Avg merge
2d 21h
Merged PRs (30d)
1

Description

So my questions is:
I wanna use `wal2json` instead of `pgoutput` or `test_decoding` output plugin, how to determine `clientXLogPos ` when application consume message succeess.
In your `pglogrepl_demo` example: you 're using `clientXLogPos = xld.WALStart + pglogrepl.LSN(len(xld.WALData))` with `pgoutput` plugin to determixe client xlogpos, right? If I use `wal2json`, how to determine that?
Can you help me for this
Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the pglogrepl_demo example and review how it computes clientXLogPos from pgoutput messages. Compare that behavior with wal2json output and determine what position should be acknowledged after the application consumes a message; document the resulting guidance for wal2json users.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
databases
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.