Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4B1p-0000rW-Kp for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jan 2021 23:12:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4B1o-0001Kl-2a for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jan 2021 23:12:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4B1n-0001Ke-S3 for pgsql-hackers@lists.postgresql.org; Mon, 25 Jan 2021 23:12:11 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4B1k-0007aw-3R for pgsql-hackers@postgresql.org; Mon, 25 Jan 2021 23:12:10 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id EE813EAD; Mon, 25 Jan 2021 18:12:05 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 25 Jan 2021 18:12:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=Cy5Pb9aHIZGwHct+yjr+vMJKXAXUjHXhefrO+UdLQPM=; b=TBIX7Ji8 hmNvg0TGZ7HuksL+/JzZODPNEGD5G06R6HFS/AmNRrweWHBUrLVM+qs6UEguJkRf hfyzGCsW/o+1602B61M5funwu4pDAh+0ui+37kQMmqwt3vMTNvnioF3MtfdPQ+RH 5l+c2f4kkoT/8yC15usiGhs/6wCOpsJe2T0XLeG1k9wmgK0CtlUzmjOzkt6UB/0B 9kxTCMaMNJK7f9D2TuwnOhTvJaF21F8JNE2INEnYEjau4Br+pJuS1wezne+GlZgN dRPT9qbk+ZtOdEdUI0Cg63Adam9CBJckrb+tk5s74RX6/jzbGbcKNNBTsbgdm7EX eJIyeh4mejJz1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeggddthecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeufffhjeeiueeuffegvddukeegledtveeivdeiueefieei vefgteehueefteehvdenucfkphepudeltddrleehrdduledrudejjeenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.177]) by mail.messagingengine.com (Postfix) with ESMTPA id BD9BC108005C; Mon, 25 Jan 2021 18:12:04 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 216612A0A4D; Mon, 25 Jan 2021 20:12:01 -0300 (-03) Date: Mon, 25 Jan 2021 20:12:01 -0300 From: Alvaro Herrera To: Bruce Momjian Cc: Tom Kincaid , Andres Freund , Amit Kapila , Robert Haas , Thomas Munro , PostgreSQL-development , Stephen Frost , Masahiko Sawada Subject: Re: Key management with tests Message-ID: <20210125231201.GA10108@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210125191805.GD27081@momjian.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk In patch 1, * The docs are not clear on what happens if --auth-prompt is not given but an auth prompt is required for the program to work. Should it exit with a status other than 0? * BootStrapKmgr claims it is called by initdb, but that doesn't seem to be the case. * Also, BootStrapKmgr is the only one that checks USE_OPENSSL; what if a with-openssl build inits the datadir, and then a non-openssl runs it? What if it's the other way around? I think you'd get a failure in stat() ... * ... oh, KMGR_DIR_PID is used but not defined anywhere. Is it defined in some later commit? If so, then I think you've chosen to split the patch series wrong. May I suggest to use "git format-patch" to produce the patch files? When working with a series like this, trying to do patch handling manually like you seem to be doing, is much more time-consuming and error prone. For example, with a branch containing individual commits, you could use git rebase -i origin/master -x "make install check-world" or similar, so that each commit is built and tested individually. -- Álvaro Herrera Valdivia, Chile Al principio era UNIX, y UNIX habló y dijo: "Hello world\n". No dijo "Hello New Jersey\n", ni "Hello USA\n".