jackc / jackc/pglogrepl

OldTuple in UpdateMessage is nil !

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

Description

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: NewTuple:0xc0000650e0}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the logical replication example and the UpdateMessage handling shown in the report, focusing on OldTuple and NewTuple. Reproduce the update with the example, determine when OldTuple is expected to be populated, and verify the result against the reported nil value.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.