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 1mSWL4-0004XA-K8 for pgsql-committers@arkaria.postgresql.org; Tue, 21 Sep 2021 03:20:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mSWL3-0005bp-DA for pgsql-committers@arkaria.postgresql.org; Tue, 21 Sep 2021 03:20:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSWL1-0005bg-Eb for pgsql-committers@lists.postgresql.org; Tue, 21 Sep 2021 03:20:57 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSWKs-0008Ru-39 for pgsql-committers@lists.postgresql.org; Tue, 21 Sep 2021 03:20:54 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 5D5485C0108; Mon, 20 Sep 2021 23:20:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 20 Sep 2021 23:20:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=/jwXSNzkb/Y4GzNVjxhnig/pJJa jCVBR9VF52tisVqU=; b=ZRIsysMES0Y+ozovmhiRlB7F8YatmBB4WiBBtT5QfY7 T9G+qP974ARdo1ifxSU34WV2Nn8/pZ7i6OkVEjsHsNQiMm3r831XK+zWq6Rncg2s /XUBmkW3nuGZSV2dO7Nxg3I7UZGOTcjskM/Mn/GL2DHF7/gN4tboYedOw1sNqj+x kvZD4dOwmJ2ih3vP+IkBU73R7oEq4/Yia/NqtaakYG2i79sbZLd+g5KTDxtORDmM 8CLKIFbFRAM4gN9tA9zPcIIHIJDPvrOIUv0pA+cAbM0bmCxQdSPKrSyt74b0V7y0 2YbsmsR1XF+jQjvIcDaLjPjaDdxYM29HHIVNGQNcQDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=/jwXSN zkb/Y4GzNVjxhnig/pJJajCVBR9VF52tisVqU=; b=cnlsi7G3QuwUtC6xxOxKOu rOvvdxKbGoaFgn27s/IuNGKAbCz5bWyimuTI6v586VAg59K5CtqpOLELufN0NkjK Ic0m7oyHDSrbaOXz20KuqPsbi3RdTWa6gaBEaswETb6bWIJV1cHwLv0ih+0oS9wp ylJ5bXDz+LsuZRf3vWWoKClROElqxDvcYUS0sbhBK0QsAloLDHEyEKdafnutrgTi 47qTZx9KoXSMd/gl0emCxBL4xUFnLbDqKyvAx2pLI5MKdjDwahbWGKbjeSDBeCl8 h5yguwuAwYoZCddOe56Uiqwxw3oNt5Ys09pw2pjNRhXqvz1ZVUkY1kmMJc/pX+8g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeifedgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeevhfejveehvddvgfdtueefuefhhfetkefgfedtkefhieeuudefveduffdu gfdvgeenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgii vghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Sep 2021 23:20:42 -0400 (EDT) Date: Mon, 20 Sep 2021 20:20:40 -0700 From: Andres Freund To: Michael Paquier Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Support "postgres -C" with runtime-computed GUCs Message-ID: <20210921032040.lyl4lcax37aedx2x@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-09-16 02:05:02 +0000, Michael Paquier wrote: > Some TAP tests are added to provide some coverage here, using > data_checksums in the tests of pg_checksums. I just rebased my AIO branch ontop of this, and promptly got a CI failure. Which appears to be unrelated to AIO. The CI system that we use runs the scripts in a privileged account. Which normally is fine, because pg_ctl drops permissions. However, the new test here doesn't. See e.g. here https://cirrus-ci.com/task/6455395922214912?logs=bincheck#L27 # Running: postgres -D c:/cirrus/src/bin/pg_checksums/tmp_check/t_002_actions_node_checksum_data/pgdata -C data_checksums not ok 22 - data_checksums=on is reported on an offline cluster status (got 1 vs expected 0) # Failed test 'data_checksums=on is reported on an offline cluster status (got 1 vs expected 0)' # at t/002_actions.pl line 189. not ok 23 - data_checksums=on is reported on an offline cluster stdout /(?^:^on$)/ # Failed test 'data_checksums=on is reported on an offline cluster stdout /(?^:^on$)/' # at t/002_actions.pl line 189. # '' # doesn't match '(?^:^on$)' not ok 24 - data_checksums=on is reported on an offline cluster stderr /(?^:database system is shut down)/ # Failed test 'data_checksums=on is reported on an offline cluster stderr /(?^:database system is shut down)/' # at t/002_actions.pl line 189. # 'Execution of PostgreSQL by a user with administrative permissions is not # permitted. # The server must be started under an unprivileged user ID to prevent # possible system security compromises. See the documentation for # more information on how to properly start the server. # ' # doesn't match '(?^:database system is shut down)' ### Starting node "node_checksum" So the problem is that -C data_checksums requires permissions to be dropped, but the way it's invoked here that's not guaranteed... And I don't think we should remove that requirement, given that we're actually doing stuff to the lock file... Greetings, Andres Freund