pgsql: Set replication origin when decoding commit records.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Set replication origin when decoding commit records.
Date: 2015-11-08 23:03:55
Message-ID: E1ZvZ07-00034F-AS@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)mail(dot)gmail(dot)com
Backpatch: 9.5, where replication origins where introduced

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/04c0b63365c7d4ee584300737afe6ef7df3b1253

Modified Files
--------------
src/backend/replication/logical/decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2015-11-09 05:59:07 pgsql: Add paragraph about ON CONFLICT interaction with partitioning.
Previous Message Andres Freund 2015-11-08 23:03:54 pgsql: Set replication origin when decoding commit records.