]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit04c0b63365c7d4ee584300737afe6ef7df3b1253
treee10897c08959fbb2e14439c04387a62155f49029
parent40c28678aa65308f27347cd218a09fdc92c483ef
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