We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i copy and run logical exampe code , but after update , OldTuple print nil
case *pglogrepl.UpdateMessage: log.Printf("%+v \n", logicalMsg.OldTuple)
print :
{baseMessage:{msgType:85} RelationID:33230 OldTupleType:0 OldTuple:<nil> NewTuple:0xc0000650e0}
The text was updated successfully, but these errors were encountered:
works as intended. @seyedmo30, You need to configure REPLICA IDENTITY for a table, to instruct PostgreSQL sending this data.
REPLICA IDENTITY
By default in OldTuple you will receive only primary key(s) and only if it was changed during update. Otherwise nil.
OldTuple
check this short explanation (promoting my project) and official docs.
if needed, example with index based replica identity.
Sorry, something went wrong.
@ubombi thanks a lot , it working
No branches or pull requests
i copy and run logical exampe code , but after update , OldTuple print nil
print :
The text was updated successfully, but these errors were encountered: