Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCl9V-000413-2L for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 14:19:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCl9T-0002xV-Uv for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 14:19:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCl9T-0002xO-GB for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 14:19:03 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCl9Q-0001NW-TT for pgsql-hackers@postgresql.org; Fri, 13 Mar 2020 14:19:02 +0000 Received: by mail-qk1-x741.google.com with SMTP id f28so12676965qkk.13 for ; Fri, 13 Mar 2020 07:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=d+OkrbfhwTXBBpg0urv7kM7HrCCLqifgnulnyR4CN0M=; b=hoOFoDLvdgx2/m17J4cfUN9ERb/w0K29uDjE0PDhcByuRjA6Bn5EnzbJYruedd/kQd h+zyzA2xr7zm+JIuBmYY90wALHGOZbrrYf/mUw/D4FW4PLMVsGBXvLUqulHlB6rgUpE6 79AOo8JeaJ75FxF4HmYqElmX9xTHwy5rezzQFl7UinwyzGuMvboMydI6MUcmQl/pET80 02NPNnL6OglD/ncdQFv6aGZMUn4i41CQHPXVkWxV/xzDQbGELbWpNh9OAJpwHejYWWKT 3JT6NCYkExxqqPJ9aw9qhCDJojhqiFUH8p+Aq9S2FVK8+/bSvyIafwG4TGwa6xbbS4QV 1UUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=d+OkrbfhwTXBBpg0urv7kM7HrCCLqifgnulnyR4CN0M=; b=DcijjeQ8QdPRrV+8o00UKSBZYGXz4wpRTqEru3FQTo19h0NROswDzlKaHLckRJSdT6 netpkHqe2mJ7FUAqwdoeD1IEBPo9OUJni+PqwTkIzSeqV9VGsAbX0P1+oepxnRkiSfm1 1yRAXfFIHj7ZXuwuFSxKIYNJmDQ2yIuZFLhOaxJtIFgb2eVUVmlYaHxrxZqBeAVq2sQy 7eykLarycsJlnt1mk/QdjUcQ7O4ZdLS9HDAtlVw8Yb0ati6cI5Ww/1LDgfTowZ+bNV8g E4m8NljDJR2cVswpnSfFFStiShz+KEFA4deh3T2s8gKwV0UFU6GBy7WWUzohc0e+kFEQ AoPA== X-Gm-Message-State: ANhLgQ0msQU2ffOnAMBdFQVLInfSjhY+88mlKwlhngiorX+FGMPz691d Pf2EmKJR+JDrgepMkGIYNHSdUQ== X-Google-Smtp-Source: ADFU+vvFhM+LS6B8tEYOil5BmLMeiudWd0QOT6sn+NHTGtHgxjw9ZAWo4lh6c0L96t9oQRSfP5Ixlg== X-Received: by 2002:a37:aa92:: with SMTP id t140mr12016844qke.119.1584109140113; Fri, 13 Mar 2020 07:19:00 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([191.125.227.65]) by smtp.gmail.com with ESMTPSA id a188sm14889143qkg.17.2020.03.13.07.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 07:18:58 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0B52F300805; Fri, 13 Mar 2020 11:12:04 -0300 (-03) Date: Fri, 13 Mar 2020 11:12:04 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Sergei Kornilov , Tomas Vondra , Kyotaro Horiguchi , "andres@anarazel.de" , "david@pgmasters.net" , "pgsql-hackers@postgresql.org" , Peter Eisentraut Subject: Re: allow online change primary_conninfo Message-ID: <20200313141204.GA3672@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200122051431.GF174860@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-22, Michael Paquier wrote: > On Tue, Jan 21, 2020 at 06:03:18PM +0300, Sergei Kornilov wrote: > > PS: also, I surprised why it's ok for wal_receiver_create_temp_slot > > to be PGC_SIGHUP and ignore change of this setting until walreceiver > > will reconnect by unrelated reason. I means walreceiver does nothing > > special on SIGHUP. In common case change of > > wal_receiver_create_temp_slot setting will have effect only during > > restart of walreceiver process. And therefore we will switch to > > archive recovery. But such design was strongly rejected for my patch > > year ago. > > [ Looks at 3297308... ] > Yeah, you are right. I was not paying much attention but something > does not stick here. My understanding is that we should have the WAL > receiver receive the value it needs to use from the startup process > (aka via RequestXLogStreaming from xlog.c), and that we ought to make > this new parameter PGC_POSTMASTER instead of PGC_SIGHUP. HEAD is > inconsistent here. I'm CCing Peter as committer of 329730827848. What are the downsides of changing wal_receiver_create_temp_slot to PGC_POSTMASTER? It seems pretty nasty to requires a full server restart. Maybe we can signal all walreceivers at that point so that they restart with the correct setting? That's much less problematic, I would think. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services