remote_apply for logical replication?

From: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: remote_apply for logical replication?
Date: 2017-01-21 00:34:18
Message-ID: CAEepm=116qsPN-+shpW94yzvCkVfovrTySfcitom7sRW__-7DQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In src/backend/replication/logical/worker.c:

pq_sendbyte(reply_message, 'r');
pq_sendint64(reply_message, recvpos); /* write */
pq_sendint64(reply_message, flushpos); /* flush */
pq_sendint64(reply_message, writepos); /* apply */

Is 'writepos' really applied? Why do we report the merely received
position as written?

I haven't tried any of this stuff out yet so this may be a stupid
question, but I'm wondering: should xinfo &
XACT_COMPLETION_APPLY_FEEDBACK trigger logical replication to send a
reply, so that synchronous_commit = remote_apply would work?

--
Thomas Munro
http://www.enterprisedb.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2017-01-21 01:20:15 Re: Off-by-one oddity in minval for decreasing sequences
Previous Message Tom Lane 2017-01-21 00:01:48 Re: Valgrind-detected bug in partitioning code