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 1nGZoI-0001kd-8Z for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Feb 2022 05:10:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGZoF-0007uq-Uv for pgsql-hackers@arkaria.postgresql.org; Sun, 06 Feb 2022 05:09:59 +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 1nGZoF-0007ug-CM for pgsql-hackers@lists.postgresql.org; Sun, 06 Feb 2022 05:09:59 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGZo8-0001au-J3 for pgsql-hackers@lists.postgresql.org; Sun, 06 Feb 2022 05:09:57 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8F94A3200EE0; Sun, 6 Feb 2022 00:09:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 06 Feb 2022 00:09:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=DAWaflxfURLjz/gVC5QIl6gHaLGvftaH1OkV8J 6oUzA=; b=CYqJR156LOX4hecUyl5f8p/Pnb3/3iFuygna6dtMGQjkcDpteZRQiP S6HUPq//z7+9dDPuUNtZ6HjTI1UpRYnNVQ83iLFINKLpaKbErs3yssutu5Bi5JeR 6BcKXBeUEFsy3H9KfjjLBfRxnI5AZAKQj7Z38G4EVREoB/XU+zgn1OfbV+JzvuNe BPqzi2NRQSddklThmEX+S+F/PZdc2B9cyyIMJcK1al4wLvnyYM9C3EzkP3FWiXi5 O75KDjtaDwglLUdnFLN3PAIaJdQHkjBOpDD7AZoQvbeaICw4kuaIevaqN5DcZP5O RHa6KoXBnmFh7PBJJ0b/2vEKSooHFQbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=DAWaflxfURLjz/gVC 5QIl6gHaLGvftaH1OkV8J6oUzA=; b=nZbfwVbebNfwG21kCYtVyoLJAfQnUTfSo nG1dI1N+4EW13nR3f263eMgr61Q6DJGjo3EjHfWyc0ydqY8EL2czIdMXrikGN9Ka 9jL1PZdXl4qp+WgHmAwfewpHvhyLOApUXp5nCfmXGA+RracaFPTcCwArnXZfqZMj FwyuD928sFaGL81BITtbB+uCbryCBsoKUdnQqAniCmNQHeNQwgNyrKJrWFCQladH kxG1+lVPPlqt0YnppT9Vz1wQfWRLWY14jbz9ACnZBM019CWbcpWpaXpEJVhbvy0I z7DjaM+KG+ZE4+hEdsW05dY0rHxSLD9rmPwq5hEEEYF345RVfzWpw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrhedvgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 6 Feb 2022 00:09:47 -0500 (EST) Date: Sun, 6 Feb 2022 14:09:45 +0900 From: Michael Paquier To: Justin Pryzby Cc: Peter Eisentraut , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org, bruce@momjian.us, tgl@sss.pgh.pa.us Subject: Re: GUC flags Message-ID: References: <20220125180751.GH23027@telsasoft.com> <20220126034426.GN23027@telsasoft.com> <20220128043621.GA23027@telsasoft.com> <20220130001849.GR23027@telsasoft.com> <20220131225645.GZ23027@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mgEvZ4VLfh7QrvPb" Content-Disposition: inline In-Reply-To: <20220131225645.GZ23027@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --mgEvZ4VLfh7QrvPb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 31, 2022 at 04:56:45PM -0600, Justin Pryzby wrote: > I'm not clear on what things are required/prohibited to allow/expect > "installcheck" to pass. It's possible that postgresql.conf doesn't even exist > in the data dir, right ? There are no written instructions AFAIK, but I have as personal rule to not break the tests in configurations where they worked previously. > It's okay with me if the config_file-reading stuff isn't re-implemented. Actually, I am thinking that we should implement it before retiring completely check_guc, but not in the fashion you are suggesting. I would be tempted to add something in the TAP tests as of src/test/misc/, where we initialize an instance to get the information about all the GUCs from SQL, and map that to the sample file located at pg_config --sharedir. I actually have in my patch set for pg_upgrade's TAP a perl routine that could be used for this purpose, as of the following in Cluster.pm: +=item $node->config_data($option) + +Grab some data from pg_config, with $option being the command switch +used. + +=cut + +sub config_data +{ + my ($self, $option) = @_; + local %ENV = $self->_get_env(); + + my ($stdout, $stderr); + my $result = + IPC::Run::run [ $self->installed_command('pg_config'), $option ], + '>', \$stdout, '2>', \$stderr + or die "could not execute pg_config"; + chomp($stdout); + $stdout =~ s/\r$//; + + return $stdout; +} What do you think? (I was thinking about applying that separately anyway, to lower the load of the pg_upgrade patch a bit.) -- Michael --mgEvZ4VLfh7QrvPb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmH/WBkACgkQnvQgOdby QH1i8Q//Xg7MntlsjVkCMNla1kvLzskKm3qJdl56JLUFNeLj+aXThsfpW5xvVgRf c6UChQ8mn7cmvLMNy1xMwGhkHbOLfJhddnYHCzmXMY2eKfM3U9J35SBUefX/tGAz PLWlWKn+ig++UOwPk04HfuxPTZNmJ4TON+JXAQVSwPZh8gcnksEQkhjouw2OwJ94 B5CJ5a/QSschAVZZUSo8qhc1fUdqWvvHx9z08C7KZI04xlr7lowDsDnMWo8WXyun YiM0F4PvmFWZmYQ0wtuWGhgh6vmEMmnDnIKk1zm9C5dGeWmVuQ/FD/YOFHTQtg8u 38THb/6qoG3CpCn/JFtKtR7GfPzIrdCLCbFU+KTr8EMRR7J4VENayHbeIgUYWToj 5vsAcTo8skAXB8gM8Lwfxe/Xmlv5Pq8HOvNRIGt7PbQhGtNndvq5az4czfN7YVuP ICiRV98sTS74dWzc76WgQ0fINvVQAomE7QdDNH3F4Y0I97A0eH8UD2XfV1xNdfet jA1GsMZqNcYmZA8lsrX1qQB09l/6UJ3PYSAC7D//QCF4BwjenQ2msdWkZJgwDvPH 9chV5evYTM05IL8yCwkXfMGP2TBWKQTlAXGlVk2I+c2dEHZ5l/ogkxS/RrYKZHdb 1EJ2Yd5kl0UBcaGAqQrjqUD3MlT0e1bZ48ctR+ZzTR6C5R9vJu0= =s3qu -----END PGP SIGNATURE----- --mgEvZ4VLfh7QrvPb--