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 1pD23p-00077A-2k for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2023 11:35:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pD23n-00069C-Dk for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Jan 2023 11:35:55 +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 1pD23m-000693-7Z for pgsql-hackers@lists.postgresql.org; Wed, 04 Jan 2023 11:35:55 +0000 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pD23d-0008Kt-GI for pgsql-hackers@lists.postgresql.org; Wed, 04 Jan 2023 11:35:53 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id C54122B068C9; Wed, 4 Jan 2023 06:35:38 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 04 Jan 2023 06:35:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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=fm2; t=1672832138; x= 1672839338; bh=q6XJvGDG3+xjIAFA6Tr0PhWADbPGeKsreSpU+wXy40w=; b=P aNbbtE8raSqUeeDozxk4k/o5K3x5E+so3VAsKvj3kjvymWGWXGjlO4GujvREwf40 tCMX4xamHhUu0iOyAG7kPL1TD4Ps8Dq26ZyYzwNPqpOyLbMc9a+qFHFie2dJjttc 9gDfeoF/ePwX2Tm2Q5QMCTKh7abRzBBet8xRr9oFF6hoNde2LjiF4IJmzQebglWx r1V0OKdoONai+9mBXeguZcu4EvftjbzjPJAq2ze4awJOhzvKgV/SRtDT9TMeNqYg KKkfv78tV+qFpeAmMT4tmvFTNQFpbNrAp80tpgHvbEbuYhShpCw3tiQen0W3o3mP CmwTp2kjA7woj9JD0E3rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeeigdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeetiefh leetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Jan 2023 06:35:37 -0500 (EST) Message-ID: <8efbb197-c55a-0947-35ba-6b8403d9baff@enterprisedb.com> Date: Wed, 4 Jan 2023 12:35:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: meson oddities Content-Language: en-US To: Andres Freund , Tom Lane Cc: Andrew Dunstan , PostgreSQL Hackers References: <64c0517b-5504-68ea-1912-9f647a70a3cc@dunslane.net> <20221114232407.peu4n2wzff3oud4m@awork3.anarazel.de> <20221115190425.uapepwpzmemyokqi@awork3.anarazel.de> <91b563cc-fa78-0011-5efc-ce61d277d64f@dunslane.net> <1197537.1668546515@sss.pgh.pa.us> <20221115234042.zkxyxzv5wgewit33@awork3.anarazel.de> <030d04cc-d4f3-cd28-5bcb-b2b5d00f0015@enterprisedb.com> <20221116164010.uxsrhsqiqhftvkfp@awork3.anarazel.de> <1360237.1668617650@sss.pgh.pa.us> <20221116170747.zpaijt6zz7lgkffd@awork3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20221116170747.zpaijt6zz7lgkffd@awork3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 16.11.22 18:07, Andres Freund wrote: >>> If I just want to install postgres into a prefix without 'postgresql' added in >>> a bunch of directories, e.g. because I already have pg-$version to be in the >>> prefix, there's really no good way to do so - you can't even specify >>> --sysconfdir or such, because we just override that path. >> >> At least for the libraries, the point of the 'postgresql' subdir IMO >> is to keep backend-loadable extensions separate from random libraries. >> It's not great that we may fail to do that depending on what the >> initial part of the library path is. > > Agreed, extensions really should never be in a path searched by the dynamic > linker, even if the prefix contains 'postgres'. > > To me that's a separate thing from adding postgresql to datadir, sysconfdir, > includedir, docdir... On a green field I'd say the 'extension library' > directory should just always be extensions/ or such. I think we should get the two build systems to produce the same installation layout when given equivalent options. Unless someone comes up with a proposal to address the above broader issues, also taking into account current packaging practices etc., then I think we should do a short-term solution to either port the subdir-appending to the meson scripts or remove it from the makefiles (or maybe a bit of both).