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 1u8HJI-0002We-3e for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Apr 2025 11:33:36 +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 1u8HJE-009q9w-SY for pgsql-hackers@arkaria.postgresql.org; Fri, 25 Apr 2025 11:33:33 +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 1u8HJE-009q9o-Ij for pgsql-hackers@lists.postgresql.org; Fri, 25 Apr 2025 11:33:33 +0000 Received: from mout-p-101.mailbox.org ([80.241.56.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u8HJB-001x7t-0h for pgsql-hackers@postgresql.org; Fri, 25 Apr 2025 11:33:32 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4ZkW1d61dDz9t3G; Fri, 25 Apr 2025 13:33:25 +0200 (CEST) Date: Fri, 25 Apr 2025 13:33:22 +0200 From: Christoph Berg To: "David E. Wheeler" Cc: Peter Eisentraut , Matheus Alcantara , Andrew Dunstan , Gabriele Bartolini , Craig Ringer , Robert Haas , Alvaro Herrera , PostgreSQL-development Subject: Re: RFC: Additional Directory for Extensions Message-ID: Mail-Followup-To: Christoph Berg , "David E. Wheeler" , Peter Eisentraut , Matheus Alcantara , Andrew Dunstan , Gabriele Bartolini , Craig Ringer , Robert Haas , Alvaro Herrera , PostgreSQL-development References: <38c53446-6b65-4222-b76b-351e56f4841c@eisentraut.org> <7c178ff3-20a5-493e-a704-e6b3263e782f@eisentraut.org> <28e98657-9369-4539-9e06-9124d1e77853@eisentraut.org> <6B5BF07B-8A21-48E3-858C-1DC22F3A28B4@justatheory.com> <25075595-41F1-4BDA-9390-9E0D983BA909@justatheory.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25075595-41F1-4BDA-9390-9E0D983BA909@justatheory.com> X-Rspamd-Queue-Id: 4ZkW1d61dDz9t3G List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: David E. Wheeler > + > +make install prefix=/etc/postgresql I'd use /usr/local/postgresql there. "/etc" is just wrong. > + > + This will install the control SQL files into > + /etc/postgresql/share and shared modules into > + /etc/postgresql/lib. If the prefix does not > + include the strings postgresql or Just "postgres", see src/Makefile.global.in:86. > + pgsql, such as: > + > +make install prefix=/etc/extras /usr/local/extras > + > + Then the postgresql directory will be appended io the > + prefix, installing the control SQL files into "the extension control and SQL files" > + /etc/extras/postgresql/share and shared modules into .../postgresql/share/extension because ... > + /etc/extras/postgresql/lib. Either way, you'll need to > + set and + linkend="guc-dynamic-library-path"/> to allow > + PostgreSQL to find the files: > + > +extension_control_path = '/etc/extras/postgresql/share/extension:$system' ... it's used here. Christoph