Unverified Commit e268fe6d authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Fix transforming UPDATE messages WHERE/SET clauses. (#333)

The logical decoding messages both from test_decoding and wal2json might
contain the same column in both WHERE and SET clauses with the same value.
When that's the case, it's best to reduce the UPDATE statement and refrain
from adding the same column-value pair in both clauses.

Also that's not just an optimisation now, as without this the following
could happen:

    ERROR:  column "id" can only be updated to DEFAULT
    DETAIL:  Column "id" is an identity column defined as GENERATED ALWAYS.
parent 95594097
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment