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 1lHvIP-00016b-LZ for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Mar 2021 21:14:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHvIM-0003R4-Er for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Mar 2021 21:14:06 +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 1lHvIM-0003Qx-8K for pgsql-bugs@lists.postgresql.org; Thu, 04 Mar 2021 21:14:06 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHvIJ-0001Bl-Tt for pgsql-bugs@lists.postgresql.org; Thu, 04 Mar 2021 21:14:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 0155B126F; Thu, 4 Mar 2021 16:13:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 04 Mar 2021 16:14:00 -0500 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=UWuIFlGDhxNccAnJiTsSx5Pf0wEvYjEXwnvW3Ifdo30=; b=R/P4bUdc AoPbaJP1xkjTTb2uqBLien9sP+gpUQ4/irERq6lsFIkjnqkse8/0gyBYYbDkfkaY hHnoSyeExBz+GJMyvVlG1TSSLG/TVQDgO1FSo/w3b9xjjdZMk7voi6GmVCm7jyIG WVxWKy4+f95FxjE51ZjYS20iJnF6rvgTLZR8IGErP/M+4GrObTj57v5lnsAVBPET wT7EQpdwA9tR5WqNJM2BYbBxdNePSFFffhNk9uB9AhTYVrQkgn0zWFg/xomPHMRQ 71GSp8ajq7/duWial4nH5fj3F8ZbpyGz7UmAwiFJDfRatKjR3iyPWKHuPFkjbTok v8QMV6difugTYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtgedgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjggfsehtkeertddtredunecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpeeufffhjeeiueeuffegvddukeegledtveeivdeiueef ieeivefgteehueefteehvdenucfkphepudeltddrleehrdduledrleehnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvsegr lhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 896AD24005C; Thu, 4 Mar 2021 16:13:58 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3DC2E2A14F6; Thu, 4 Mar 2021 18:13:56 -0300 (-03) Date: Thu, 4 Mar 2021 18:13:56 -0300 From: Alvaro Herrera To: Michael Paquier Cc: r.zharkov@postgrespro.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16914: Regression test of the worker_spi fails if USE_MODULE_DB environment variable is set. Message-ID: <20210304211356.GA21621@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Mar-04, Michael Paquier wrote: > > test worker_spi ... FAILED 131652 ms > > ============== shutting down postmaster > > Fun. Eek. > > Something like this fixes the problem: > > One problem with this solution is that this is not portable. Instead > of generating dynamically the configuration file, here is funkier > solution as we know that worker_spi would restart if the database it > should connect to does not exist: let's use a completely different > database name, not expected by any other modules. Then, this database > gets created in worker_spi.sql, with a reconnection to it. It's not that I *like* this solution, but let's say that I dislike it less than the other one. If there are no other ideas, I +1 this one. -- Álvaro Herrera 39°49'30"S 73°17'W