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.89) (envelope-from ) id 1gRLKS-0001hC-6k for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 18:09:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRLKQ-0008Se-GZ for pgsql-hackers@arkaria.postgresql.org; Mon, 26 Nov 2018 18:09:50 +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 1gRLKQ-0008SX-5W for pgsql-hackers@lists.postgresql.org; Mon, 26 Nov 2018 18:09:50 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRLKN-0004K8-5U for pgsql-hackers@postgresql.org; Mon, 26 Nov 2018 18:09:48 +0000 Received: by mail-qk1-x742.google.com with SMTP id m5so12841555qka.9 for ; Mon, 26 Nov 2018 10:09:47 -0800 (PST) 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=2rwzJiN8jFXEpViN0rhtD7IwirjLzIOXgCqFFVQjA84=; b=DvuIoX2JKqFDk2+HJWjR7PR1x5I71xWuKikehevoQLVdBRxvVoJlNsmM5v4QGz4/c8 jYCab3RFuOpf8YxL1YeKQjx5BXtWAXNtJWoduvGfNMs/LHH4OO0pb3KK599WWGV1Xpk9 FmEuDhtffmz3zeJNLR7Wo3C316oSKN3jtBO3BxnErxw10aTXaC4D3UD83gTAVCuSuefx QDYw7R7eqq+d5gQrXsVt47JjSZHPSvnasGAOFBB5P6OUBBQ41gGRQocOWoTVW/nuPiEf ER1CuQ3GncQXHFnsdMKFxRb/wz+u6GrsngVFCkvomOTlpc5QCw+6nqsaVv5O4otnQ6zB D22A== 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=2rwzJiN8jFXEpViN0rhtD7IwirjLzIOXgCqFFVQjA84=; b=EKQbnTTzkqjsX+h/UqiJHWwstmwpids1kw5gJ2bK+HkjBuG02H/v/SYdQeE2sLA5lv x2W/XMbgQdRpO6/SH2E50P2lDLoxGca5ot9B5dJwBr+GfNk0ifBJD0tVjHklBiPgdzNC qD70X689e22Kix87+C4WiigALt1r6+zzVXJ4UDLgvv9S+AzWAnsoqt47dVi5BlbUDlEP w/FJjlJyuzGcBZYO4Auz6FLyQCj2fEP37w5qvcRmeyuXhXVUz6ZNIilg7+JkvgQXcBgI hSe12MHOA0G9V7Y3VV0CQcfud9wj02/+3xO4b5INnBx9SEOJQSm9MHhCZ8n1wGUZ6F0/ vwcg== X-Gm-Message-State: AA+aEWYloMwycqlOFmgBD9SGG0/ehpi415vixX50kzOY94b6ufOir8xA zr5qcLpSSdkVtvvXamPppSl+6A== X-Google-Smtp-Source: AFSGD/Vp0/TJq8j2qZHHZhRNjyior+SBJOEHgrMmxCHi+LipqEKT2XS7Yg5KAfqN3XjBauuEPCiQLQ== X-Received: by 2002:a37:268b:: with SMTP id m11mr25812309qkm.131.1543255786234; Mon, 26 Nov 2018 10:09:46 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.75]) by smtp.gmail.com with ESMTPSA id f31sm704018qtc.42.2018.11.26.10.09.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Nov 2018 10:09:45 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id F331B624; Mon, 26 Nov 2018 15:09:43 -0300 (-03) Date: Mon, 26 Nov 2018 15:09:43 -0300 From: Alvaro Herrera To: Stephen Frost Cc: Michael Paquier , Peter Eisentraut , Sergei Kornilov , Postgres hackers Subject: Re: pgsql: Integrate recovery.conf into postgresql.conf Message-ID: <20181126180943.fdj3dkajqtqifekb@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181126151852.GW3415@tamriel.snowman.net> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-26, Stephen Frost wrote: > I would think we'd have the different GUCs and then the check functions > would only validate that they're valid inputs and then when we get to > the point where we're starting to do recovery we check and make sure > we've been given a sane overall configuration- which means that only > *one* is set, and it matches the recovery target requested. I don't quite understand why it isn't sensible to specify more than one and just stop recovery (or whatever) when at least one of them becomes true. Maybe I want to terminate just before commit of transaction 12345, but no later than 2018-11-11 12:47 in any case. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services