-
Notifications
You must be signed in to change notification settings - Fork 162
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
Deferred PK are not recognized #62
Comments
Any update on this? My postgres version is 10.1 |
@quentinbricard don't use deferred PK because it is not available to logical decoding. It means the PK won't be available for plugins (not just wal2json). It is like that since first version of logical decoding. |
@eulerto: Did you get a chance to confirm this? Maybe we can just document the limitation and close it. |
I concluded that it is an oversight and submitted a patch to -hackers ML. |
Hi
I have an issue with a table which has a primary key defined as
DEFERRABLE INITIALLY DEFERRED
.Here is postgres setup:
The PK is ignored and any data processed as an UPDATE or DELETE operation is not written by wal2json plugin.
Looking at the code, I found:
RelationGetIndexList does not seem to set the right PK.
I created a small test case to show this behaviour (I updated the given sample).
We can see that only INSERT operations are written by wal2json
Note:
DEFERRABLE INITIALLY IMMEDIATE
produces the same behaviourThe text was updated successfully, but these errors were encountered: