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 1fIPtK-0003BG-HB for pgsql-general@arkaria.postgresql.org; Tue, 15 May 2018 02:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fIPtI-0005Qv-IE for pgsql-general@arkaria.postgresql.org; Tue, 15 May 2018 02:40:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIPtG-0005Ql-QC for pgsql-general@lists.postgresql.org; Tue, 15 May 2018 02:40:40 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIPtA-0004go-7Z for pgsql-general@postgresql.org; Tue, 15 May 2018 02:40:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D155D22594; Mon, 14 May 2018 22:40:29 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 14 May 2018 22:40:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=dxQ2ijnfa+xrv+lQY2tpF0QLtFf+xuUPYG7fSyFXkYY=; b=CVP0YcDf QB6iGvi0sloHFioql/D1rKTgostSKpE3xbj9E9dJw+qfatCC5XvB12Obp3V6c5vi Yi5pmNSfjZFiUo7L72tXqhJl7pWb9nruhjrueWDs4Fxg6C5RabFnzoijbbdxvU91 zpjhzNItm2qF3CVgn8mbaMKIbnGw7ZIEF0IWyFX0mLsAllK1Br5KTXrc1vy/J5m6 OOhsxG5GKAxAfzvfuFuHBz0fv8S94YlY6FQ1pJV+bTu0Oa6hrEAYCP/Aza3sCYAH jDG12lV99F4gJfY5lZzeU6sBeIkEkI+ffMUGoW0JVxrCd+P9lZkf5+cTPgh9ew1m WW3wrZPdkGB9wQ== 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-sender :x-me-sender:x-sasl-enc; s=fm2; bh=dxQ2ijnfa+xrv+lQY2tpF0QLtFf+x uUPYG7fSyFXkYY=; b=hWCX+jME18THmkcEpdR5VmSry4mq8IuYWZD/Qrx0BBP7m JDd+qAZkS4Z0YeU3VvKc4JB3uXjsINZDsz4We2sEA3JI9lV6U8FLM2/l2nHjT7NY U8KZ7fH4USqRBA8cHanorwFHtGgWgVpWBNJe0nMOm2zTZhOHjSpnp0FkNfaM/95g CsJvl3pRauNSDBYITt/ARXvkuVjl29u2POgpNBSHG64mCTzxp5d4SzNW7NwVIHTp 9CiYHovbwxAiowNXkh5Aquyh0Nw4fJy0P0cfbivR9Rst5Xvycue3uWO90GuAZcwn xghubuK0eWtw+/VOzH+aY5I6f1VAo2TVVbgZUxB9w== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 97AB510256; Mon, 14 May 2018 22:40:27 -0400 (EDT) Date: Tue, 15 May 2018 11:40:24 +0900 From: Michael Paquier To: Tom Lane Cc: Adrian Klaver , Dominic Jones , pgsql-general@postgresql.org Subject: Re: 10.4 upgrade, function markings, and template0 Message-ID: <20180515024024.GD1600@paquier.xyz> References: <20180514144244.fe352659f5085e209594f3ff@xmission.com> <5113.1526331745@sss.pgh.pa.us> <275c6239-9308-0655-d47f-e37af264f139@aklaver.com> <6047.1526332959@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WChQLJJJfbwij+9x" Content-Disposition: inline In-Reply-To: <6047.1526332959@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --WChQLJJJfbwij+9x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, May 14, 2018 at 05:22:39PM -0400, Tom Lane wrote: > 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. A portion of the infrastructure is already available for background workers which can use BGWORKER_BYPASS_ALLOWCONN since Postgres 11 to enforce connections to databases even if an administrator disables connections to it. -- Michael --WChQLJJJfbwij+9x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlr6SJgACgkQnvQgOdby QH1coA/9EFzghExVxrZVvuxLxmSbPp6tqhFCjiHfszgoeWufBa2srEyWzcRY6TSr FsMKuf/VSZvtS1pdQh8fgQZNsAV1yaaLdb49MQFBvwUwcE6KS6sBf1Nb4J6c/Y28 46+CY4bk5RCxgrho8TiTaeLZxSlz0Y+HWwpJVkOxZVfWaKyYDXLnMnsLE4o9aZ6C O3IbaLN1PggWm7QRcAOmUXCOEsew0bAWmGB/YshGa4IfM3+Gt/fcOmt4gnzGaL9+ KfrbMAbVyYhzI9ywNxFhW7yKLI8CrjK3tlWTC7sgf80LZm0fIa8aNU46UEtvhFYw BZb3dnAdsoFMj0YH+WjcUHIzyXoa1cewE7KV+3+BMB6FDuWadGjxCBaQStqjMtdj 0fOYuBfpZHDIM1PxhvQAfsUyZoBlsLNeAco4mN9WkbrnH4zpllNWYJtBybqjhwVY KXvU3X0ZjOf9kQUQ6WlDtZeunpMWWTpgnWDYWi2B7gKpbVWrlzSJpOqyD2cS5cq3 stSSrGfBlc1ND4w/FEcxcV5SOTDdbc8a8vuSZozEyWXuG7Ycmly5qQB89gB1gbQA iZheL3LCdoHwl7MIrT3d0ZWVuYWVxJ+1yTQ93ywnEnLJT7ffkz+TP0xmv0wrRwNh IZFogQtZOyBY9uGF7id8oxFBqHCHlz2JnIk+pCAJCrwshOR+h5s= =3/h6 -----END PGP SIGNATURE----- --WChQLJJJfbwij+9x--