Set replication origin when decoding commit records.

Andres Freund <andres@anarazel.de>

Commit: 04c0b63365c7d4ee584300737afe6ef7df3b1253
Author: Andres Freund <andres@anarazel.de>
Date: 2015-11-08T23:03:35Z
Releases: 9.5.0
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

Files

PathChange+/−
src/backend/replication/logical/decode.c modified +1 −1