Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEdrJ-0001fl-Jt for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Oct 2018 17:19:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gEdrH-00014p-Tn for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Oct 2018 17:19:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gEdrH-00014c-DS for pgsql-hackers@lists.postgresql.org; Mon, 22 Oct 2018 17:19:15 +0000 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gEdrD-000607-Ax for pgsql-hackers@postgresql.org; Mon, 22 Oct 2018 17:19:14 +0000 Received: by mail-qk1-x72d.google.com with SMTP id x8-v6so25850248qka.4 for ; Mon, 22 Oct 2018 10:19:11 -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=y2pyE32cdJgSfImqQIjM34TwjsH6rPO5nEf7Sk8yYTQ=; b=jJxJGUGyh+j3+OZdG/u3KZqjocBZeQCkmGHU7Xk0ugOWmsR1jf+JL3+T7JSVeUX7bA qUH6tRa4wi3LD75KZK/uWdM1DRKLpfCiA7lWMgn/GLQSDcsDv7jfPvjSUBqvDOEvRAiQ OWGRr9U2cr3ncxZy75QVXhBs0m/ldJxPHJAg+VChlWP6MATe7Ue3Rw5Sh2FVHFC4OsOn ObewECpUclpjo76d+mOKv7ZAFIOBYmLtR0wrxJPHM1YZ9+qN3xl202C0tkjmW5kmlxRt N5qQcbkdzPOw63BSmD+4Xv8DEXvxQrXUBay3jM8+YUCFwigQ8w+ZxK3MIMG3Xchv5DXV ktZA== 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=y2pyE32cdJgSfImqQIjM34TwjsH6rPO5nEf7Sk8yYTQ=; b=AH9tdisM4u9dI/j/Tl+Ut+oSppBXjCn3x6FnWKkUzNKz6Q5jdSRqNJCAJ+jCpkiH98 KwqoFMYhgGIjb+ZMGyY214L+6I/pVSdcJhLBT5oAYJ5nxGR0C8SqE4bt8tTfDU0xvVKd x36A7zdatB65J1y14VORL6EHMQQsGMtWaLYk5JMEJBdFAk5Pmc0bZusp04HYjKP0z4Lh SBnPfUHGM+4sv3YjsXNxsSSSS/G9JN+QCNs/7XRjR7cnjKvmGlfUOXevqfs3m6B2FWip alH/+Tig3VaPdxt7hP2Y4EoejEB2yxgQ8rlSul7niyhdeNXE6wtVwMiLXDvfqvl7ScqP snYg== X-Gm-Message-State: AGRZ1gLmWRZNmomeWr8RdmRYwe2ocEuppNlbLyKsTjmt4PNZjqiTtMu0 tSrzCX2HaOXBBZneVzq4L79dnw== X-Google-Smtp-Source: AJdET5eJyDEg3pkABz2gvFsAQK8E0qXBF9eowRfl9b+lIseG2YXhOLDZZIqzrp1MWqhZRi0giI85iA== X-Received: by 2002:a37:c68c:: with SMTP id s12mr2718585qkl.66.1540228750303; Mon, 22 Oct 2018 10:19:10 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id n47-v6sm16869924qtc.29.2018.10.22.10.19.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 10:19:09 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 9522B640; Mon, 22 Oct 2018 14:19:07 -0300 (-03) Date: Mon, 22 Oct 2018 14:19:07 -0300 From: Alvaro Herrera To: Alexey Kondratov Cc: Andrey Borodin , PostgreSQL Hackers , vladimirlesk@yandex-team.ru, Dmitriy Sarafannikov Subject: Re: [Patch] pg_rewind: options to use restore_command from recovery.conf or command line Message-ID: <20181022171907.ri2tkqtt7n6jm4dh@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <50b94dcb-c744-ff2c-d6a4-3c371f8a7f9a@postgrespro.ru> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Oct-22, Alexey Kondratov wrote: > > I didn't actually try patch yet, but the idea seems interesting. Will > > you add it to the commitfest? > I am willing to add it to the November commitfest, but I have some concerns > regarding frontend version of GUC parser. Probably, it is possible to > refactor guc-file.l to use it on both front- and backend. However, it > requires usage of IFDEF and mocking up ereport for frontend, which is a bit > ugly. Hmm, I remember we had a project to have a new postmaster option that would report the value of some GUC option, so instead of parsing the file in the frontend, you'd invoke the backend to do the parsing. But I don't know what became of that ... I don't see it in the postmaster --help output. Of course, recovery.conf options are not GUCs either ... that's another pending patch. We do have some backend-mock for frontends, e.g. in pg_waldump; plus palloc is already implemented in libpgcommon. I don't know if what you need to compile the lexer is a project much bigger than finishing the other two patches I mention. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services