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 1hugF4-0002So-Nm for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 16:53:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hugF3-0005mE-89 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Aug 2019 16:53:49 +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 1hugF2-0005fU-Mv for pgsql-hackers@lists.postgresql.org; Mon, 05 Aug 2019 16:53:48 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hugEw-00083O-70 for pgsql-hackers@postgresql.org; Mon, 05 Aug 2019 16:53:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 60EF750B; Mon, 5 Aug 2019 12:53:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 05 Aug 2019 12:53:40 -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=0wFN+Usz++JPg1+8PATJDczxPCR iJW3E2pUx4Ybg8D4=; b=E/G5VjJIuF7vHQJLcDB1xe/+lbXwIVBvj4WKefc+pr0 +4AiFcHjeqqZOA+05xXGBzDBUyRjGgWfBjUQQ/Q8zx7oOWg0eRgblQK54f9i20e1 +YZRLLQoIMHgiU+7tJig8XDH9W1U3Wbx1M0ggEK36iCWVZWzRcfNQ2UXUJSt4wtz 3nhN+w01csF2MkYxNgPjS3RWbBtDKdHsIVcln9L2BytUmIRecGc6viPQ3SUW8qKK CwhHEBF6JywX3P+yWkUxwDUGPQrSYlu4Nmt2yHQiry2SGHE0uWfDA1zitKr76pcZ xQGu4I/5lv+uo2uaJfC+3nhWboaDZwCCY48b4HkUy2g== 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=0wFN+U sz++JPg1+8PATJDczxPCRiJW3E2pUx4Ybg8D4=; b=vXK4/rAwnEvshhWscmKt4K 3ZaXqcW9q9uqL31rJC0//S6le9bZW2AIDkQNzQGTUlpULe58ENqMC3CJIvXnsbEz tpVi0n/Sqq880PgmC3GObQO/ZExh96plrvMDFMNoORgDTa6Bx8xxkxLUFE0RygTQ hL6CVcymMlrCHlCYCyH4Vad3hfT6+MruankIgwlRMij5Dt0h3Xf3iDH1axfmTD60 U9Vn3erPRYtLDodRYyAHnBce2eoZAI177Qxh2poTAYhuFrweToOf40m3hO3bfG+R QNHrWm4ZxXwPIv6NtbZhUVQmcXhCjYkc10ARwBVhRp2LPPjyf/OkfkcxPXjCg6GQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddtjedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppe eijedrudeitddrvddukedrvdefjeenucfrrghrrghmpehmrghilhhfrhhomheprghnughr vghssegrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id D28D88005C; Mon, 5 Aug 2019 12:53:38 -0400 (EDT) Date: Mon, 5 Aug 2019 09:53:37 -0700 From: Andres Freund To: Tom Lane Cc: Robert Haas , David Fetter , Ian Barwick , Tomas Vondra , Stephen Frost , Amit Kapila , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions Message-ID: <20190805165337.akba75vusf26irku@alap3.anarazel.de> References: <20190803004558.jfkbngi6g64eaqku@alap3.anarazel.de> <20190803010802.rs3cz2kjq4dl4olu@alap3.anarazel.de> <20190803124111.2aaddumd7url5wmq@development> <16320.1564851579@sss.pgh.pa.us> <20190805162203.GR31493@fetter.org> <4768.1565022305@sss.pgh.pa.us> <5739.1565023404@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5739.1565023404@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-08-05 12:43:24 -0400, Tom Lane wrote: > Yeah, good point. There are a lot of other cases where you really > don't want system startup to happen, too. Agreed. > On the other hand, people have also opined that they want full error > checking on the inserted values, and that seems out of reach with less > than a full running system (mumble extensions mumble). I think the error checking ought to be about as complete as the one we do during a normal postmaster startup. Afaict that requires loading shared_preload_library extensions, but does *not* require booting up far enough to run GUC checks in a context with database access. The one possible "extension" to that that I can see is that arguably we might want to error out if DefineCustom*Variable() doesn't think the value is valid for a shared_preload_library, rather than just WARNING (i.e. refuse to start). We can't really do that for other libraries, but for shared_preload_libraries it might make sense. Although I suspect the better approach would be to just generally convert that to an error, rather than having some startup specific logic. Greetings, Andres Freund