Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMLSD-002BRz-M5 for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2023 04:39:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qMLSB-00HBZT-Da for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Jul 2023 04:39:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMLS9-00HBYz-Vo for pgsql-hackers@lists.postgresql.org; Thu, 20 Jul 2023 04:39:51 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qMLS5-000Zo6-RE for pgsql-hackers@lists.postgresql.org; Thu, 20 Jul 2023 04:39:49 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 940F9320214A; Thu, 20 Jul 2023 00:39:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 20 Jul 2023 00:39:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1689827982; x=1689914382; bh=nA ttMl+v+xxGd6vDSgpSJifmY+EwCL28VfmXSMPCnyY=; b=TPnr8TsYbnDgQbfCRP T6GZ330qaKZHDXNaXm/CyThhAIwhnRA/TJkhBKF7moC8wMx5uDTedOZUiajN6Zjp NNI+bz3wBEiFP0J8+VrruLbBT1by/Mtkg9AMNAh/3QA9sa6HmzeqvTqkb378rX49 7DYs9fP6CSsyQjzDdmqdmxryC7TcLaX01/5ZZBIm7ZikQWMpqPo6SAhyQfSr6XnR 3BUrpXKuCZr2PpwvKKhKqYMl4iaRdJNF5c/hUyLR1XY4ONO9L3KEZscwrBz73L4S kjRZxmHzSHrdOsVwCjUQ0NtjfBMTJo5oPAVv1kr9cfPDI+0EwfsuJZJGJ614s0Lm H1Xw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1689827982; x=1689914382; bh=nAttMl+v+xxGd 6vDSgpSJifmY+EwCL28VfmXSMPCnyY=; b=Tx9ZOPiD9NqtPE7AfLYgf+QNFyJXc ZHg0EZuWJCIhxXxCd0PCCIcfzcQDW8En5QiwiKncbi9TFs1LTHB8KCKRzM9lLNro Ot2uIlCtq3jlFfaY+x1Gj0/2XvOcg2220uDaPXTc93+RZ5sLjhj1kOVnd1zonoPv XaLA32Gy4dMD9mXmXKgvABaVI3r5tEVYrrUnhsUCSVS4Td7iYN8Na0UpuidCh4zq p9kCXBYKJF9iHMy6us7tXYUiNhsn7xayXYt1SmZUwaIDXMUx+a8AhShuxdBf9drT ljSMWiyPrifeyMJeopx9Gw0boV1/sj6sGujGWcn5Io3F8GB0qcr8PwoSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeelgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jul 2023 00:39:40 -0400 (EDT) Date: Thu, 20 Jul 2023 13:39:36 +0900 From: Michael Paquier To: Bharath Rupireddy Cc: Masahiro Ikeda , pgsql-hackers@lists.postgresql.org Subject: Re: Support worker_spi to execute the function dynamically. Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/eouRrRR8iPRZciK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/eouRrRR8iPRZciK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 20, 2023 at 09:43:37AM +0530, Bharath Rupireddy wrote: > +1. However, a comment above helps one to understand why some GUCs are > defined before if (!process_shared_preload_libraries_in_progress). As > this is an example extension, it will help understand the reasoning > better. I know we will it in the commit message, but a direct comment > helps: >=20 > /* > * Note that this GUC is defined irrespective of worker_spi shared li= brary > * presence in shared_preload_libraries. It's possible to create the > * worker_spi extension and use functions without it being specified = in > * shared_preload_libraries. If we return from here without defining = this > * GUC, the dynamic workers launched by worker_spi_launch() will keep > * crashing and restarting. > */ WFM to be more talkative here and document things, but I don't think that's it. How about a simple "These GUCs are defined even if this library is not loaded with shared_preload_libraries, for worker_spi_launch()." -- Michael --/eouRrRR8iPRZciK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmS4uogACgkQnvQgOdby QH3ofw/+LG7N2oJUrIeJPMgbw1lD1i5OAZxourZPTpLki52ry5OpyqKvf3DsE4rh t+cZF0lk7v3m8KIGkPNoATcJscqhSCjZVk8aSXN2LH/OnqWaZnoKd+eyIH+jSVAr O3p1pUmN1lDjX/0MsjTWJCMc6Yy3T/I5SbUnuxFuTi89SDGIGrQxGdTju9habkgb 2rRY7wH5GrAuaWgqmGbAYbZQVPpzcu5ex1XUjY//3zGTMAFCXVR2S4OkWeSz3XBi HmU2FNp3wOuFEGm6sbrmT79JQTd+x3cu8FS5wyVqH7U3adx/AXgLNEpUwSCFIeoP TFfmZl+UCrXjqaT4YkeyHxwmdvVGJn/uxLB8hO6NsTDofUyIVH6K3lOYd6zyDaER PL1eiJACVH7280RCwA02zgM61iLlE0xFaunitAv+/MVWWipNgUSUJ0FemFBePE1J jYX5lUOzOy+XgwlfKZW56iDBwdnywUKp5hRBz1Ch4WkvsCocr/D3VTWg+RQuDiAT aTbeowMEbYIAO65Blk9zxuBrHrkCmxxIKXq04+2630SYOAV8VMzqlrFT9rN1qU08 SFt1E0tVkevjNxgUCDn3aqXMGiTtzfYxHQwW4wjFGeh7ZLfRTAKR3yEWRfHDOO2u l7wrBAxJ3n2CGetGky7B8/x32+5U8FhkHkyCDilGT9XAprN1XSk= =Pa6h -----END PGP SIGNATURE----- --/eouRrRR8iPRZciK--