Fix logical decoding sendtime update - Mailing list pgsql-hackers

From Shulgin, Oleksandr
Subject Fix logical decoding sendtime update
Date
Msg-id CACACo5THwWLDJSx+vgLSB9Us9XN+K2ihnQLrzSArAgqr21s8Qw@mail.gmail.com
Whole thread Raw
Responses Re: Fix logical decoding sendtime update  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi Hackers,

it turns out, that the code in WalSndWriteData is setting the timestamp of the replication message just *after* it has been sent out to the client, thus the sendtime field always reads as zero.

Attached is a trivial patch to fix this.  The physical replication path already does the correct thing apparently.

Cheers!
--
Alex

Attachment

pgsql-hackers by date:

Previous
From: Nils Goroll
Date:
Subject: Re: s_lock() seems too aggressive for machines with many sockets
Next
From: Andres Freund
Date:
Subject: Re: s_lock() seems too aggressive for machines with many sockets