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 1qEGUk-0004lh-LP for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2023 21:45:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qEGUj-0007AY-LJ for pgsql-bugs@arkaria.postgresql.org; Tue, 27 Jun 2023 21:45:05 +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 1qEGUj-00077H-Br for pgsql-bugs@lists.postgresql.org; Tue, 27 Jun 2023 21:45:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qEGUg-000qou-Fk for pgsql-bugs@lists.postgresql.org; Tue, 27 Jun 2023 21:45:04 +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 35RLivsO1053467; Tue, 27 Jun 2023 17:44:57 -0400 From: Tom Lane To: Andres Freund cc: eng.khaledghazy@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18003: FATAL: cannot request additional shared memory outside shmem_request_hook In-reply-to: <20230627212423.p56zxuqeh5kyatqg@awork3.anarazel.de> References: <18003-4c21ad729e8208ee@postgresql.org> <20230627212423.p56zxuqeh5kyatqg@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 27 Jun 2023 14:24:23 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1053465.1687902297.1@sss.pgh.pa.us> Date: Tue, 27 Jun 2023 17:44:57 -0400 Message-ID: <1053466.1687902297@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > That's not going to help you / the reporter, but to make issues like this > easier to debug in the future, I think we should > a) install an error context in load_libraries() printing the GUC name and > b) install an error context in internal_load_library() printing the name of > the shared library name +1. I'm not sure this specific issue justifies it, but it seems like that might make it easier to diagnose other shared-library-load-time issues as well. regards, tom lane