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 1pB0b3-0004bq-Uv for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2022 21:37:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pB0b2-0007dA-Qy for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Dec 2022 21:37:52 +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 1pB0b2-0007aW-IA for pgsql-hackers@lists.postgresql.org; Thu, 29 Dec 2022 21:37:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pB0b0-000748-8s for pgsql-hackers@postgresql.org; Thu, 29 Dec 2022 21:37:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2BTLbjPP610826; Thu, 29 Dec 2022 16:37:45 -0500 From: Tom Lane To: Thomas Munro cc: Andres Freund , pgsql-hackers@postgresql.org, Robert Haas , Peter Geoghegan Subject: Re: postgres_fdw uninterruptible during connection establishment / ProcSignalBarrier In-reply-to: References: <20220925232237.p6uskba2dw6fnwj2@awork3.anarazel.de> <20221209020815.wsoixct72c6hst5l@awork3.anarazel.de> <20221229172330.jpuoljhtvivci3cd@awork3.anarazel.de> Comments: In-reply-to Thomas Munro message dated "Fri, 30 Dec 2022 10:31:22 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <610824.1672349865.1@sss.pgh.pa.us> Date: Thu, 29 Dec 2022 16:37:45 -0500 Message-ID: <610825.1672349865@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > The header idea is a little bit sneaky (IIUC: a header that is part of > the core tree, but can't be used by core and possibly needs special > treatment in 'headercheck' to get the right include search path, can > only be used by libpqwalreceiver et al which are allowed to link to > libpq), but I think it is compatible with other goals we have > discussed in other threads. I think in the near future we'll probably > remove the concept of non-threaded server builds (as proposed before > in the post HP-UX 10 cleanup thread, with patches, but not quite over > the line yet). Then I think the server could be allowed to link libpq > directly? And at that point this code wouldn't be sneaky anymore and > could optionally move into a .c. Does that makes sense? I don't like the idea of linking libpq directly into the backend. It should remain a dynamically-loaded library to avoid problems during software updates. regards, tom lane