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 1rwHeR-000kn3-Od for pgsql-committers@arkaria.postgresql.org; Mon, 15 Apr 2024 08:25:20 +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 1rwHeQ-00BZ4N-6L for pgsql-committers@arkaria.postgresql.org; Mon, 15 Apr 2024 08:25:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwHeP-00BZ4F-D0 for pgsql-committers@lists.postgresql.org; Mon, 15 Apr 2024 08:25:17 +0000 Received: from wfout1-smtp.messagingengine.com ([64.147.123.144]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwHeI-002vwp-0t for pgsql-committers@lists.postgresql.org; Mon, 15 Apr 2024 08:25:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 930941C00091; Mon, 15 Apr 2024 04:25:07 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 15 Apr 2024 04:25:07 -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:subject :subject:to:to; s=fm2; t=1713169507; x=1713255907; bh=tq2smhUlTZ CsTHrc4ULbfD6Oyx9gotrU7vEvSELg24w=; b=MIC8WCJUXxW9Ao0KJwqqRbOI+w Fjw4HMPwPsdcPFx5ZIO3vy7wyBbgqzcn2GNcMpvYu+yrWemXC6g8bjQG8ygr6uGA 2ZclNd3dv/Fu9igYeXeUenC46cORy3QRsxI4LOMZpt3+qwLT1wLHGy6yidBZI8kJ HZZLzFaKAHN0uJhQAWNTKmdAhA18Cy6VHXbjXmrJkq+RMKWbg/o7HEetKueZWCX1 UBnK9MpLXx1KheNv6bUooVTJKhrvPPXiB2CuMS6LpH2AFyvcLcCxTBN+6Ph8FHIH hw80NoBYkWaxwDCc5qpnOed/Kb1mSAaSUAISPM7W/iqqULkMNHh8jvEsB6SQ== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1713169507; x=1713255907; bh=tq2smhUlTZCsTHrc4ULbfD6Oyx9g otrU7vEvSELg24w=; b=HS5ICuNlxev2Z1cqGvLrya7itbIyeSikBBIj6X23fVR8 g7Oq0IgQ7cH91XyXKScBggCL5yAsYFPGMAIrCw/5aEJ727j7QiufCf/yH2em5ixw nqma/S3aiJO3ri7sj/D8nvcFxPaQf/sqfgODKaBF9yVtJhQIJMh1l0a8emhP5oO4 aJ1NnQg+MCzcc1siHUUwr1sC/iI8IYegmEB/vvjxx1mAE5BaCVdX+MzH1mB/0VUb npC3MohY6+Rk+bfrdIO9GFFL4gKceWrKywKRCpZtO12S78GF3QbOMSgljNBTFpl+ bfLUsmiVWi29ndA2y9WfCMRfovc0S1OZjklHnYK7kg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudejvddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtdorredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepueehjeefleeigfelheetveeg vddvfedtveejveelleetgeekteeukeetgefgveeunecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Apr 2024 04:25:04 -0400 (EDT) Date: Mon, 15 Apr 2024 17:24:39 +0900 From: Michael Paquier To: Heikki Linnakangas Cc: pgsql-committers@lists.postgresql.org, peter@eisentraut.org Subject: Re: pgsql: Move code for backend startup to separate file Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="DGy10/SJYjKyEMWQ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --DGy10/SJYjKyEMWQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Heikki, (Peter E. in CC.) On Mon, Mar 18, 2024 at 09:40:36AM +0000, Heikki Linnakangas wrote: > Move code for backend startup to separate file >=20 > This is code that runs in the backend process after forking, rather > than postmaster. Move it out of postmaster.c for clarity. >=20 > Reviewed-by: Tristan Partin, Andres Freund > Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3= -8b01ff7ce9ef@iki.fi --- a/src/include/postmaster/postmaster.h +++ b/src/include/postmaster/postmaster.h @@ -52,6 +52,8 @@ extern PGDLLIMPORT int postmaster_alive_fds[2]; extern PGDLLIMPORT const char *progname; +extern bool LoadedSSL; This variable is missing a PGDLLIMPORT, it seems. aafc05de1bf5 has missed a second one with MyClientSocket. Both are declared in postmaster.h. The credit goes to Peter Eisentraunt for noticing these two who has mentioned that to me on mastodon, while I am not able to parse correctly a set of diffs. This stuff can be spotted with a command like this one: src/tools/mark_pgdllimport.pl $(git ls-files *.h) Thanks, -- Michael --DGy10/SJYjKyEMWQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmYc5EcACgkQnvQgOdby QH3/eA//RKPaXom0uYFr4aW3ZvYXjE+8CjSKFKqSc2RKlL1nE6mzi0Q0MsG66/fh Y8IYtEw5OYhMfjo3ua+4y0NBBWF4rIGus01R4T1G+1Hxm8YnBJEltAC9/rLBkCsc lpc+pZ7mlKstuJFAhB73BObbrPtMz2zLWgkbBzsAgio9lJoa1h3BsTcViuI1ZTts ly95G1qtnRgX7Jx2EcJ8eVtp4JPC5LMvn1kokH6PquYr8HjsFmVEkpmRM7reIr8V 9oV60LuzoKlQsKM/VKpQulxdFKvDaRsOxXOqS+8h+8Tfr0iYjpYADfH7qXIoAB8Z BKblKhr7QyuvjeBYVpYTqWGvktOkANDIKssJQTc9qm7NEwNz+RZh6ayhxehH2t5G lNAbjiWNCJ2Jt+w3vIAMml0hAWabx0jw/mpn1J6+mpMDDtL0tAUaaFERvrz7hAjV WDW6ztaM3JY+etf7d/ENOtF2ON/IarKmzpb4X4IY/uKOt/f0h+VyvzG1NaQBvaQ+ 75gRdA7qv4cmVSIEhJ+bEExqrJN8/X8ReVVIA3dz+LLDf0EHy+lpdz/0w1z7BEEN x+TKL34pRAgVw4qEyIZ0A5hvxc0YBurUTi6R7OOAgj1LDOQLmkGEQLlEX9NYCkYn tSlLJR23NHe5a1V/lA/C4ELv9ZuBSqgaDcEOzhaSxiBEk9p4Pqo= =b8vK -----END PGP SIGNATURE----- --DGy10/SJYjKyEMWQ--