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 1lIAk0-000734-WD for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Mar 2021 13:43:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lIAjz-0004Cd-Ry for pgsql-bugs@arkaria.postgresql.org; Fri, 05 Mar 2021 13:43:39 +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 1lIAjz-0004CV-Lq for pgsql-bugs@lists.postgresql.org; Fri, 05 Mar 2021 13:43:39 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIAjx-0000bm-HA for pgsql-bugs@lists.postgresql.org; Fri, 05 Mar 2021 13:43:39 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 92C445C0194; Fri, 5 Mar 2021 08:43:34 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 05 Mar 2021 08:43:34 -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=eFyQ2oD061kJM2hO/z3jSSLffPUnruJqwAkwVQk4Luk=; b=T7VvWTpi 93LLHFoKyl69rodVuF1HXu+ueoZVSEnM325A/S1ayH8r63X88n9ZfJNaTzAAIyIE ZbpkcaDtBI/QFrSTLDiaLnElo3m2qO2bAiD6RNLj3WcI6jNm6qY+gUVv0DojCfC7 fnwF/rbyamaB/PoMgeP+z7OV6OxqGoP0kr8elwagDwV9hbkOPbtKw2mQ+++KXEwF KZmviASHhMyMfE/bPCoRaB/XrS7N7EnHgYBQQn1FvCWb+PgUvVHBzQ7D+nY61s0m p4kK1i0YBryHap88l8A3IHR2XH+ZQdLJ6WSYCAutYB0T0AzRFjljz0KLjAT9eWJx wT4rLZUApbXVyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtiedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderudenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepueffhfejieeuueffgedvudekgeeltdeviedvieeufeei ieevgfetheeufeethedvnecukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E80D240054; Fri, 5 Mar 2021 08:43:33 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A6B4C2A14F6; Fri, 5 Mar 2021 10:43:31 -0300 (-03) Date: Fri, 5 Mar 2021 10:43:31 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Tom Lane , 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: <20210305134331.GA22496@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-05, Michael Paquier wrote: > Or we could just rely on a custom memory context that dynamic workers > could use to store their data? It could be simpler IMO to just merge > together bgw_main_arg and bgw_extra, then pass down the whole as an > argument of the main routine of the bgworker, say with a buffer of 256 > bytes for example. I think the only way to make that work portably is by using shared memory. -- Álvaro Herrera Valdivia, Chile "La rebeldía es la virtud original del hombre" (Arthur Schopenhauer)