pglogrepl icon indicating copy to clipboard operation
pglogrepl copied to clipboard

Fix: fix pglogrepl.SendStandbyCopyDone

Open zzzzwc opened this issue 2 years ago • 1 comments
trafficstars

Change the return value '*CopyDoneResult' to struct to avoid NPE when receive a DataRow message.

zzzzwc avatar Aug 03 '23 08:08 zzzzwc

Would it be better to instantiate a CopyDoneResult internally to resolve the bug rather than change the signature of the function? In theory, that's a breaking change... though I suppose no one could be relying on it because the current code crashes... 🤔

jackc avatar Aug 05 '23 12:08 jackc