Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIL3R-0007uP-7I for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:30:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fIL3P-0007RN-I9 for pgsql-general@arkaria.postgresql.org; Mon, 14 May 2018 21:30:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIL3P-0007Qq-6c for pgsql-general@lists.postgresql.org; Mon, 14 May 2018 21:30:47 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIL3K-0006eN-8l for pgsql-general@postgresql.org; Mon, 14 May 2018 21:30:46 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7917E224EB; Mon, 14 May 2018 17:30:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 14 May 2018 17:30:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=cDi/w+dg0c2hRKdwnF9h62Il3U0qv rmjZIcfEgyFYaY=; b=fbsXZ9aey4QxYHNz6209lk5aU7iKDtWA/Chcu4MlFaD/5 9fC0D6y1ZWDAsYwtPL893kQ75VhMvFBOBFwzjPVDKVwt1YQKDCkaSOwosbwnzWle QG91rOlX0j7zGb4kdEJQBlSn1luofnoEtSEjnz4qh2UlMKcnNEWTL1G96+gp3h9T hvcaF8nWaNCJvzX7I5OnfRlR3/OOZELl994uxgNa5PjIwFZ+nX2Pl0c+G1VYxKmc KqXQFefUnL3igZPEbcmdzBpAYGN4Dc5gGOtDuVg6bckpgnWAp6yVRUZ7Q6uWIhI5 DNNY2m/QGgo0rg0DxaNMMzdGK3Swu3LJhprMktzhQ== 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:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=cDi/w+ dg0c2hRKdwnF9h62Il3U0qvrmjZIcfEgyFYaY=; b=aEuzeouZ4qltjpeB0NPHRw ayfLfysDL9//PeTG6D0WcIKHIeD2b7FffSVGkz+Ung6Tf9LvPRWatDQN13pz+ASJ UfflVeW/LsRzthkVLTdmzMGk2v2LuypXEjbNrjWzZZMSg1Rlaf9rjm8DaNyVihWC CYkqkOSNzWua1YC2xLyVkbW7t5Dd5189PStvMNRoIRRvFkl6nhBcjjs2wrgMLWz6 8a/wtZWXhW7o7EF9bYGVDtDd5OW1+QMv1sU2KCklX+gurCBtykIpwhPlIEVLMtJw JJijsOfQ2f6e9pGiCqKPL6Q1MPKgpVrXEpkzyJ29WpRONWJkCeWNkI3Q++/zjKgg == X-ME-Sender: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id B764710260; Mon, 14 May 2018 17:30:40 -0400 (EDT) Subject: Re: 10.4 upgrade, function markings, and template0 To: Tom Lane Cc: Dominic Jones , pgsql-general@postgresql.org References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us> <275c6239-9308-0655-d47f-e37af264f139@aklaver.com> <6047.1526332959@sss.pgh.pa.us> From: Adrian Klaver Message-ID: Date: Mon, 14 May 2018 14:30:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <6047.1526332959@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 05/14/2018 02:22 PM, Tom Lane wrote: > Adrian Klaver writes: >> On 05/14/2018 02:02 PM, Tom Lane wrote: >>> I didn't bother with spelling it all out in full detail this time, >>> which maybe was a mistake, but I felt that probably most users >>> wouldn't need to bother with these changes at all (unlike the case >>> where a catalog correction is security-related). > >> Well what is nice about the news release is you can cut and past the >> entire list of commands and do the updates en masse. > > It'd be nice to have some more-automated way of doing this type of > correction. Ordinary scripting doesn't look very promising, because > I don't see an easy way to deal with the need to connect to every > database in the cluster; that seems to depend on a lot of local > characteristics about usernames and authentication > > Maybe it'd be worth building some sort of infrastructure that would > allow this to be done at a lower level. It's not hard to imagine > an autovacuum-like or bgworker-based thingy that could run around > and apply a given SQL script in every database, bypassing the usual > worries about authentication and connections-disabled databases. > That seems like a lot of work for a need that only comes up once in > awhile, but perhaps it'd have more applications than just catalog > corrections. That would be helpful given that a major version has a 5 year supported life span. I can see folks not deciding to do the manual work at the minor release because at that time it does not apply and the work does not seem worth it. Then at some point in the future conditions change and they wonder why things are not working the way they should. I know I would be grateful. > > regards, tom lane > -- Adrian Klaver adrian.klaver@aklaver.com