-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transactions info (time) in unit events ? #19
Comments
Hello, @cyrilchapon 😃 Obviously wal2json has the advantage of handling transactions as a block. When using the pgoutput plugin, the start time of the transaction( pg-logical-replication/src/output-plugins/pgoutput/pgoutput-parser.ts Lines 54 to 65 in 9b191c5
I think it could be used while holding this time value as a member variable until commit. @mastermatt How about this idea? |
This pushes past my knowledge, notably around the fact that I've only ever needed to work with features available with protocol version 1. @cyrilchapon you said DDL events, but I just to make sure we're on the same page, It seems the BEGIN event has a transaction ID, then subsequent DML events can reference that ID.
As I've stated, I've never worked with streamed transactions in this context and I don't know the gotchas. tl;dr: I don't know. But I'm curious, if anyone figures it out. |
Hi,
I'm implementing a CDC use-case and found your library which is pretty cool (thanks for this 🙂).
Reading #17 + some Debezium posts saying they deprecated wal2json usage for pgoutput; I came to the conclusion I'd better go with the later.
I have tested both though, and one thing I liked with wal2json (v2) is the fact we have access to the commit-time of the transaction directly inside unit event (insert, update, ...)
Which is apparently not the case with pgoutput.
So my question is simple :
Is the fact a pgoutput DDL event (insert, update, delete) with PgOutPutPlugin due to
?
If the later, I'd try to PR this; but could you please give me some clues where and how to do so ?
Thanks 🙂
The text was updated successfully, but these errors were encountered: