Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGbmv-0002LP-QE for pgsql-committers@arkaria.postgresql.org; Tue, 13 Dec 2016 01:21:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cGbmv-00069q-8O for pgsql-committers@arkaria.postgresql.org; Tue, 13 Dec 2016 01:21:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cGbmh-0005tV-Qe for pgsql-committers@postgresql.org; Tue, 13 Dec 2016 01:21:35 +0000 Received: from mail-wj0-x22b.google.com ([2a00:1450:400c:c01::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cGbmc-0005P3-SL for pgsql-committers@postgresql.org; Tue, 13 Dec 2016 01:21:34 +0000 Received: by mail-wj0-x22b.google.com with SMTP id v7so87655667wjy.2 for ; Mon, 12 Dec 2016 17:21:30 -0800 (PST) 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=3iL5l5SZaljx4FTEtIMNiBVIBv08o+6TEYfSnjDZOAk=; b=DwIjP3SBgK9+Z3iNSyQBUuSD9LT7AcGchG9IoQJvruluTLgO2l181CqsTSXXgRr5JG Lc/M7mX03CH+gTeof3A8of4FlziX6tmgcwPZFzaRqXWzoVXxpcJ0YTeB31d7cD4dWE1u gf0t8/qIE3gCd2dwgxcHsFGq6UWyrpwYYXNWs12HgKeDy3p+x+h0YSLMSpLjiwjXrDG8 lVZvn6uHTEEqOmBSJ7LGAmMk6SKxlHPu2SLEzjYGcZblbjOPgGfrICtwR7hQq7sqYJXG wMvN7GfJZo4G4PfzfPNoKVkzR2zmujXKdW9c26DflxnQNYkTi09YJH3kq3SUgkziE6Gi G8ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=3iL5l5SZaljx4FTEtIMNiBVIBv08o+6TEYfSnjDZOAk=; b=OfrDPY61wHBJyqRmCxAYNcfGhwQyrmcY7LA9czJuQZlAwZlF82m+mQ2SqTCgnHLhnY V9d3df8xowaxIr47PI9l30rzv+oau7a25qFs9OUh2x+Yl5+WeKwZy1G99GJqNbLodZt5 WQASNIWHuf+JGKF7Cq40VUHigbIxkfNLMN2kWHWscKtTonXP/oBN04z+wlRqZX41bXsT ml3qgUygSGJyXvZvbneMz2Hnex8iIE9FYR77/nwF1Y+6PtJLD8BJQnB8j1mnL2a4lEs3 ofUJtCSobn51lRVuZIFMuLh889HDXKVGfeVNPa6hlUP0lAVrEh8JJrmWuz3gilFDfqye WoFA== X-Gm-Message-State: AKaTC01Hd/Zmoi7rsprwDy8XZK5yaMBs+dmhfV9Z8+U8IF4OSK8UxcLiveMnO+52aaBBIBAwkaeb0bTnR75BsllKhtIksC/1T1ifbPZ+j+6WnlgUIaY7HJP4yXSE5AUjVkJhHj8k/odm/Lwbhs5jCFhZrdtuRqLp4exmEEfP1/Ep1yW52ctjzT31doBLgy5jDqLFMNxHezFpLNmT X-Received: by 10.194.18.196 with SMTP id y4mr85586213wjd.73.1481592088969; Mon, 12 Dec 2016 17:21:28 -0800 (PST) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id p144sm76981wme.23.2016.12.12.17.21.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 17:21:28 -0800 (PST) Subject: Re: pgsql: Add support for temporary replication slots To: Tom Lane , Andres Freund References: <27274.1481557380@sss.pgh.pa.us> <27833.1481558144@sss.pgh.pa.us> <62935e6f-4f1b-c433-e0fa-7f936a38b3e5@2ndquadrant.com> <22907.1481571177@sss.pgh.pa.us> <15713.1481585953@sss.pgh.pa.us> <314cae39-2e7d-f5a3-d226-cfb80cf80481@2ndquadrant.com> <18684.1481589637@sss.pgh.pa.us> <48b2c017-695d-b5ac-2ff4-89b939b3e8f9@2ndquadrant.com> <20161213004903.iito2pefdrrjgny5@alap3.anarazel.de> <6886c56a-f6c8-3c44-53a1-dae6c24afb76@2ndquadrant.com> <20161213010059.dn64rrb3u7zxnnwk@alap3.anarazel.de> <19997.1481591281@sss.pgh.pa.us> Cc: Peter Eisentraut , pgsql-committers@postgresql.org From: Petr Jelinek Message-ID: <495584eb-c8c8-90ba-0e21-1b0ecc148bf4@2ndquadrant.com> Date: Tue, 13 Dec 2016 02:21:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <19997.1481591281@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 13/12/16 02:08, Tom Lane wrote: > Andres Freund writes: >> On 2016-12-13 01:57:01 +0100, Petr Jelinek wrote: >>> I mentioned that as possible solution upthread, I am only worried that >>> the failure scenario is basically infinite loop. > >> I don't see the problem with that. If you're really concerned you can >> set a statement timeout. > > I don't think "change the test" is the right response here. > I think the problem is that we're disconnecting from the slot at the > wrong step of backend shutdown, and that we need to fix that before > it bites us on some more painful parts of our anatomies. You can't > just throw darts at the code when deciding where to do things, and > proc.c is NOT the place that should be concerned with replication > slots. > It has been concerned with replication slots since 9.4 so it's not like it's newly invented concern. As Andres says, we don't have better place to put it to at the moment. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers