Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2gtj-0007zF-9R for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2017 16:31:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d2gti-0006Qs-SV for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Apr 2017 16:31:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d2gsA-000152-AG for pgsql-hackers@postgresql.org; Mon, 24 Apr 2017 16:29:58 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d2gs7-0006JH-AL for pgsql-hackers@postgresql.org; Mon, 24 Apr 2017 16:29:57 +0000 Received: by mail-wr0-x22b.google.com with SMTP id z52so53467119wrc.2 for ; Mon, 24 Apr 2017 09:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=hqcy9tR6AYaLdYoN9OfsEvQsZtzpzo7EZ30nIqMlhZU=; b=Wk43kD1UqGBC0hOYWQ33I5ucYA7D67p/NbHrLGEYiXqoXvQOJxSWpt+aD94x1vB9E6 bDWOgDJDogiAF2srVQViDmZ9V/LdyZfBN3ThKAdDUSjaujr5cIsWhHIdxRktCJo1Fxj/ 9k8pSSYmf+Bl+oPdtwa8nrghMlVQYX7UomIL9qqMGaLfUVyBz+xz1UqEGwu6+jHqbwO0 7181qxy/x1553k5D9kqgDK+hUy13TCeDuOnzmwwXOElmun1GODL6aIh1Ijxi4uTHpSKK JG2mdvg1eX3y1S6E3FFagaQIszz0IRE1Mz9NcxXdfh/VCWuv9cVlVNZjNUHShqWXQ0iE PsTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=hqcy9tR6AYaLdYoN9OfsEvQsZtzpzo7EZ30nIqMlhZU=; b=ATdFOZ6hBrcjwPgVsdrCg5WewQIzqYyD67PAwbLpDgF7HMSJozNWyY/wKwTLg7sPtP Z9xfGDr5dyFOtsWFyQ6oYtFAHiMo9tu65iw6LSOMlIlONKTbMHpTT65GVBJfHIJorCkd Rkqp46sQi+mjC6NcpZWcTvrs5WklAEJxDdgHUt2PZAWcAyFBus0B348RujPRWeYRUS5V bCyNUPMz7kXbYvTLYFA7xASpI1LfOmiCtKQlDdWwfk9y2v+eYHUiU4oF5Sv5bBXIzo8V Rp4ZiE5mBL63dbHSfKw4YhjZ/9FD0wt55nO5/H6O3r+Y7Gk8OYigr0DcORUlJAn0nkkD ty3g== X-Gm-Message-State: AN3rC/6NabrWeR/Mn0p2vCXrnV/8lpAPHioHVw9p/gH6MJrC1UcciP/j cYM0//pzxhIUd9Xl X-Received: by 10.223.129.4 with SMTP id 4mr7416807wrm.62.1493051392840; Mon, 24 Apr 2017 09:29:52 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id q140sm954866wmb.14.2017.04.24.09.29.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Apr 2017 09:29:51 -0700 (PDT) Subject: Re: walsender & parallelism To: Andres Freund References: <20170421014030.fdzvvvbrz4nckrow@alap3.anarazel.de> <7966f454-7cd7-2b0c-8b70-cdca9d5a8c97@2ndquadrant.com> <20170423235941.qosiuoyqprq4nu7v@alap3.anarazel.de> <20170424000452.3iab4qpc3mtb2v6v@alap3.anarazel.de> <13973428-ca0b-b329-7f32-f15150e10334@2ndquadrant.com> <5814B653-B06F-45ED-8820-8258F6699107@anarazel.de> Cc: Craig Ringer , PostgreSQL Hackers , Petr Jelinek , Peter Eisentraut From: Petr Jelinek Message-ID: <4396e7f1-685d-776e-c2a7-cd620add904f@2ndquadrant.com> Date: Mon, 24 Apr 2017 18:29:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <5814B653-B06F-45ED-8820-8258F6699107@anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 24/04/17 07:42, Andres Freund wrote: > > > On April 23, 2017 10:31:18 PM PDT, Petr Jelinek 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