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 1jIBpn-0001hh-UQ for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Mar 2020 13:49:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jIBpm-0005eT-6O for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Mar 2020 13:49:10 +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 1jIBpl-0005cc-N7 for pgsql-hackers@lists.postgresql.org; Sat, 28 Mar 2020 13:49:09 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jIBpi-0001J9-9u for pgsql-hackers@postgresql.org; Sat, 28 Mar 2020 13:49:08 +0000 Received: by mail-qt1-x842.google.com with SMTP id 10so11150965qtp.1 for ; Sat, 28 Mar 2020 06:49:06 -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=0RIOkqJ7DFtgiDypYfCATz6BshjREHHUNSBNEqAEfW4=; b=bxK0zgMJvYvCatakfDiKqJsJFaGG7UcAZHC4IK3gO3yBV5RyHyQf7VuGYeQRbdTPt5 PqrAEfT6aWf/xcPrFLwN6Gg5594zpRUsCfNbe5zkwdyoQwGNrq+kEpnYJxe0oK/rQOs0 dCcyht7l5IDQToIMVSyrRsf+WJT6cvmILgZnCCfwU3Qrdzy6SwaUjdT5H1pfpvNeoLty NfX6mOYp8eFF84quKB0cf8FMc7iLvwZjFugDifZUYr7ijxhTRtNQgxxsRBYTKwpUQo9y 0ztH7Ps32ZRvrB5kPgtG5/mSlxGaCPIki9Mx8oA/uMAeQv+HkQKptL335Ua6Wxkh3pdU 22sw== 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=0RIOkqJ7DFtgiDypYfCATz6BshjREHHUNSBNEqAEfW4=; b=ElTwnlUFNic912aK1bDew9KRwmncevRYlFRt7qqf+chugDTmg+jVrygMjYOH4ecCjm uFuSVaLccSSh/wQ20YmlihZa9AkFkedt6aXsxoCEvZoWIZbwgEQVdtAkLuS+X4VOGHYc Ls9f4UNN8Mx2ruMut62XjRqtlFHh+zQ9TGttPLoa9s/J+v2PlE/v9Ay6/9h1V2yZTczC Q/UG3bZvu7dB8PaGDLStHRAPyLVp3UChzZgXCHR24rhN/OD6BaUpRPSCQOJCkPIPqbzw zY1yVThlPJzH2RPHD2ZO7uc9LCiR9XYdDoIk4RBue173Te4seUeH4P/T+ssU9jwXTbg6 rskQ== X-Gm-Message-State: ANhLgQ208jWoopSpkt26dTHqO1TJeKXAvQp+erPqj3qz1xya/dDneVpD OaZ/+VvIUTcwacNkIanll9/NGA== X-Google-Smtp-Source: ADFU+vsyhkKyLolIUZg7WucY6Ih9sy7PTgHOybQ5NUpUSduls+M9ndm5Z7wTMv9y0ZA2YKNBXMjQcQ== X-Received: by 2002:ac8:18a4:: with SMTP id s33mr4121739qtj.220.1585403344796; Sat, 28 Mar 2020 06:49:04 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id a200sm6040580qkc.13.2020.03.28.06.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Mar 2020 06:49:04 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 24E78300A04; Sat, 28 Mar 2020 10:49:02 -0300 (-03) Date: Sat, 28 Mar 2020 10:49:02 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Masahiko Sawada , Sergei Kornilov , Michael Paquier , pgsql-hackers Subject: Re: base backup client as auxiliary backend process Message-ID: <20200328134902.GA11688@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7925a361-d48c-db03-30b4-fcd331ef7f02@2ndquadrant.com> 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-14, Peter Eisentraut wrote: > On 2020-01-14 07:32, Masahiko Sawada wrote: > > - Replication slot name used by this WAL receiver > > + > > + Replication slot name used by this WAL receiver. This is only set if a > > + permanent replication slot is set using > + linkend="guc-primary-slot-name"/>. Otherwise, the WAL receiver may use > > + a temporary replication slot (determined by > + linkend="guc-wal-receiver-create-temp-slot"/>), but these are not shown > > + here. > > + > > > > Now that the slot name is shown even if it's a temp slot the above > > documentation changes needs to be changed. Other changes look good to > > me. > > committed, thanks Sergei has just proposed a change in semantics: if primary_slot_name is specified as well as wal_receiver_create_temp_slot, then a temp slot is used and it uses the specified name, instead of ignoring the temp-slot option as currently. Patch is at https://postgr.es/m/3109511585392143@myt6-887fb48a9c29.qloud-c.yandex.net (To clarify: the current semantics if both options are set is that an existing permanent slot is sought with the given name, and an error is raised if it doesn't exist.) What do you think? Preliminarly I think the proposed semantics are saner. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services