]> granicus.if.org Git - postgresql/commit
Set replication origin when decoding commit records.
authorAndres Freund <andres@anarazel.de>
Sun, 8 Nov 2015 22:01:53 +0000 (23:01 +0100)
committerAndres Freund <andres@anarazel.de>
Sun, 8 Nov 2015 23:03:35 +0000 (00:03 +0100)
commitf3a764b0dac77451d20ee00d2f5916447a5c4346
tree24a52a332b716f4cace966f757251e46f6c954aa
parentfed19f312c72778ce7dcbb0670871b22bd06ff85
Set replication origin when decoding commit records.

By accident the replication origin was not set properly in
DecodeCommit(). That's bad because the origin is passed to the output
plugins origin filter, and accessible from the output plugin via
ReorderBufferTXN->origin_id.  Accessing the origin of individual changes
worked before the fix, which is why this wasn't notices earlier.

Reported-By: Craig Ringer
Author: Craig Ringer
Discussion: CAMsr+YFhBJLp=qfSz3-J+0P1zLkE8zNXM2otycn20QRMx380gw@mail.gmail.com
Backpatch: 9.5, where replication origins where introduced
src/backend/replication/logical/decode.c