Confusing with commit time usage in logical decoding - Mailing list pgsql-hackers

From Artur Zakirov
Subject Confusing with commit time usage in logical decoding
Date
Msg-id [email protected]
Whole thread Raw
Responses Re: Confusing with commit time usage in logical decoding
List pgsql-hackers
Hello,

I read this message 
http://www.postgresql.org/message-id/[email protected]

Is this a bug or a typo? In DecodeCommit() in decode.c instead of:

if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
{origin_lsn = parsed->origin_lsn;commit_time = parsed->origin_timestamp;
}

should be:

if (parsed->xinfo & XACT_XINFO_HAS_ORIGIN)
{origin_lsn = parsed->origin_lsn;commit_time = parsed->origin_timestamp;
}
elsecommit_time = parsed->xact_time;

-- 
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: WIP: Access method extendability
Next
From: Michael Paquier
Date:
Subject: Re: Proposal: "Causal reads" mode for load balancing reads without stale data