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 1jHue5-0003Gu-Pf for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 19:27:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHue4-0007f8-GG for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2020 19:27:56 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jHue4-0007cY-2S for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2020 19:27:56 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHue1-0006nm-Ao for pgsql-hackers@postgresql.org; Fri, 27 Mar 2020 19:27:55 +0000 Received: by mail-pg1-x541.google.com with SMTP id x7so5047934pgh.5 for ; Fri, 27 Mar 2020 12:27:53 -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=zDsn4UU7DBeAzPJ3d35CvjTO5eYE/rSWP2482/jqv48=; b=dGV1CKaTPNTuH1+rJ/BAwLXe4ZwdrFnSZUdFtVuRMBfP+T0LrC1dPHaN0lhlQZ2Vse xfqHBPygI01LQgltLbbYWmQa/2ybHMhJO2zr4leJUtyTmoIBTcWMzd69+95DZ6qpKnoJ tyQywk5SRH3+6BNrUUl9RiimK43TaiO/8WfI6P+j6t+TfBuO7jx+7LKPU4JszPDVDKca Eo3+eZ6buKVQOSOKPlkKYgZRLe6cmoWhzUInRo1PRAys0EhBmdjxOH2p2EC0Zee86Euz LY9P3Z2+IR1FQEpT+9uzxy1K+zcUCIhkfVtdXd2L+4DY68GdnAScPx+mWG9MJ14c5ufC lQJA== 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=zDsn4UU7DBeAzPJ3d35CvjTO5eYE/rSWP2482/jqv48=; b=i0rzTcSCLxWRNKKka9SrqLzVMSSJOCVWPJF1inFCiV4CcWIfYkJyDhcyK9f+i0TV4U mnNxs7mKtkAyipvtYhfKerXNozEUce4/Fapx1z/mt/tcwSIYUaKDsZOvXWneZTiX+xqR FYveD7Hc7WC/fhZ4X3X5to49ivOT9wlK5iE19k+kCz9HwaO3L+XHjJF+fXhWTPX69VO5 X3o5Mkzvlbr2v4NbCoD7L0xCLqz3CH6ShseY1YcuVnvhywvIPDN3ajH5xkGzHbvP9A6z omn6KEDJFVvcdi6EN//Tq5VcV5uD8tkgqzmVEGuDuU75ZKCTkefeX2TvgedZbBkFMHJ4 hP/w== X-Gm-Message-State: ANhLgQ19h+qowc5yMyC7XKa3PKA7Rh65y57n7JuSVk/5H9OG0SIpmh4v N/kUZfdFhL0Q+r1shSTwrRvMww== X-Google-Smtp-Source: ADFU+vuNcPPeonLd4USs/3H22/OclGdNUdCK7w46x1Fawt9KY15PiuWh9xHqRmiDUQYzNd7MoJi1Zg== X-Received: by 2002:a62:76d1:: with SMTP id r200mr773628pfc.298.1585337270711; Fri, 27 Mar 2020 12:27:50 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([174.128.226.18]) by smtp.gmail.com with ESMTPSA id g69sm4323107pje.34.2020.03.27.12.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 12:27:49 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 1CA8630093E; Fri, 27 Mar 2020 16:27:45 -0300 (-03) Date: Fri, 27 Mar 2020 16:27:45 -0300 From: Alvaro Herrera To: Sergei Kornilov Cc: Michael Paquier , 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: <20200327192745.GA30004@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1796751585307082@sas1-ac0cb6954dcf.qloud-c.yandex.net> 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-Mar-27, Sergei Kornilov wrote: > Hello > > > I realized that the reason the tests broke after Sergei's patch is that > > recovery/t/001_stream_rep.pl's get_slot_xmins() is broken for temp > > walreceiver slots, since it's using the non-temp name it tries to give > > to the slot, rather than the temp name under which it is actually > > created. The workaround proposed by 0002 is to edit standby_1's config > > to set walreceiver's slot to be non-temp. > > This is bug in behavior, not in tests. > We need walrcv->is_temp_slot = false; somewhere in RequestXLogStreaming to works correctly. > > HEAD is not affected since primary_slot_name cannot be changed online. I pushed the wal_receiver_create_temp_slot bugfix, because I realized after looking for long enough at WalReceiverMain() that the code was beyond saving. I'll be pushing the rest of this later today. Thanks, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services