pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr.jelinek@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
Cc: Craig Ringer <craig@2ndquadrant.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Petr Jelinek <petr@2ndquadrant.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: walsender & parallelism
Date: Mon, 24 Apr 2017 18:29:51 +0200
Message-ID: <4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com> (raw)
In-Reply-To: <5814B653-B06F-45ED-8820-8258F6699107@anarazel.de>
References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de>
	<e41081d2-080f-b612-2084-549fa652fae2@2ndquadrant.com>
	<CAMsr+YGAKGcAVpEB7Br3yS9GNdB-KEF0LJEpHPiyf7XFnBr2PQ@mail.gmail.com>
	<a6167509-dc9f-411b-3bbd-758ab8079139@2ndquadrant.com>
	<7966f454-7cd7-2b0c-8b70-cdca9d5a8c97@2ndquadrant.com>
	<20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de>
	<20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de>
	<a8b44e9f-6631-3f2c-377b-0f5671784baf@2ndquadrant.com>
	<13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com>
	<5814B653-B06F-45ED-8820-8258F6699107@anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 24/04/17 07:42, Andres Freund wrote:
> 
> 
> On April 23, 2017 10:31:18 PM PDT, Petr Jelinek <petr.jelinek@2ndquadrant.com> wrote:
>> On 24/04/17 04:31, Petr Jelinek wrote:
>> So actually maybe running regression tests through it might be
>> reasonable approach if we add new make target for it.
> 
> That sounds like a good plan.
> 
> 
>> Note that the first patch is huge. That's because I needed to add
>> alternative output for largeobject test because it uses fastpath
>> function calls which are not allowed over replication protocol.
> 
> There's no need for that restriction, is there?  At least for db walsenders...
> 

No, there is no real need to restring the extended protocol either but
we do so currently. The point of allowing SQL was to allow logical
replication to work, not to merge walsender completely into normal
backend code. And I don't know about differences well enough to go for
the full merge, especially not at this stage of PG10 dev.

>> As part of this I realized that the parser fallback that I wrote
>> originally for handling SQL in walsender is not robust enough as the
>> lexer would fail on some valid SQL statements. So there is also second
>> patch that does this using different approach which allows any SQL
>> statement.
> 
> Haven't looked at the new thing yet, but I'm not particularly surprised...  Wonder of there's a good way to fully integrate both grammars, without exploding keywords.
> 

I think we'd need to keyword the first word of every replication command
if we wanted to merge both grammar files together. I am not sure if
there is all that much need for that, the pass-through for everything
that is not replication command seems to work just fine. Obviously it
means walsender is still special but as I said, my plan was to make it
work for logical replication not to merge it completely with existing
backends.

-- 
  Petr Jelinek                  http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (41+ messages)  latest in thread

Message-ID: <4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com>
Permalink:  ../4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com/
Also on:    postgresql.org/message-id/4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: petr.jelinek@2ndquadrant.com, andres@anarazel.de, craig@2ndquadrant.com, petr@2ndquadrant.com, peter_e@gmx.net
  Subject: Re: walsender & parallelism
  In-Reply-To: <4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com>
  References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de> <e41081d2-080f-b612-2084-549fa652fae2@2ndquadrant.com> <CAMsr+YGAKGcAVpEB7Br3yS9GNdB-KEF0LJEpHPiyf7XFnBr2PQ@mail.gmail.com> <a6167509-dc9f-411b-3bbd-758ab8079139@2ndquadrant.com> <7966f454-7cd7-2b0c-8b70-cdca9d5a8c97@2ndquadrant.com> <20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de> <20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de> <a8b44e9f-6631-3f2c-377b-0f5671784baf@2ndquadrant.com> <13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com> <5814B653-B06F-45ED-8820-8258F6699107@anarazel.de> <4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox