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 1qqESb-008lBL-Dq for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Oct 2023 15:15:50 +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 1qqESZ-008eQ0-7r for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Oct 2023 15:15:48 +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 1qqESY-008ePJ-0F for pgsql-hackers@lists.postgresql.org; Tue, 10 Oct 2023 15:15:47 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqESV-001J4f-7A for pgsql-hackers@lists.postgresql.org; Tue, 10 Oct 2023 15:15:46 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 58F093200B1C; Tue, 10 Oct 2023 11:15:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 10 Oct 2023 11:15:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :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=1696950938; x= 1697037338; bh=e32kgYu/9zea/d5ByrWo8zfzwLYmsBcOHyk28ly7S+4=; b=C wA9/lILFSsjsNTVUf/VHnoZY2VasV5uY70crV2C9x5euEJa3rDM3Kl/oPeSQiMzH Vdy8VhZ3WGO9mAoGW3SqkhrPQjsrFzfD/Io5vhvM9bwRYd1vAeah2xOrXI8Lnyn6 4216jnk0AEsyufxuO4bJcAOfWOh1omBxMK8lAeDA8rrW4PQKGKI5Pz3dmg+il4QG pxvAmzfNWWC4RFyZxHUuB6/virYwZaDvWoS5YuWQ+wPgjpFz2bdDuZkFWpNJD3Ju 0A5fDk2MsJvx4pPD2LhXf0CCPMw7KQ9n6I3RsJSlXJXj8KKiCjC8fkPnxnqT3z/E FB/42JP6j8/mnsiAK26CQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrheehgdekhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Oct 2023 11:15:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1696950936; bh=AE4NfdtCSmZQb0dZGvdxwGDCULePtxOYWMrzGxHIfOM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=fHvUSGhkMrjbUfT5pE/k6DWiM5Z5Yt2zsBoq+NgGsHmXfpsI0nNW749pbrGaHBxOF /2avG1HANnDwemagNkT8oo4yts6qLxivu+/mKCMOiLFCzNnen2sDOU9HHEjVU5H4Kn NzMXVTcTz1225cE7xystVEUB6SmA2cSaScKkT/bTU+7EReoo4P0//tQzO5AIShxSlv Xa1HcpMJaQ5gsbk+2WrlJaH0qUIJIgYWitI7uzrCz71y5OHAStRSN2DnGehOnhB//J +qpVGg+sP+e9R737VexmIrNvo23X1VTmDNLWU4t/f7hOCCmzSv2hCck2WtvF5MGFx4 BMv8QFgcod9LA== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BF0BE3146; Tue, 10 Oct 2023 17:15:36 +0200 (CEST) Date: Tue, 10 Oct 2023 17:15:36 +0200 From: Alvaro Herrera To: Esteban Zimanyi Cc: PostgreSQL Hackers Subject: Re: Fwd: Advice about preloaded libraries Message-ID: <202310101515.ucdlddy5xmxp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Oct-10, Esteban Zimanyi wrote: > As can be seen above, it is not REALLY mandatory to have > shared_preload_libraries = 'postgis-3' but then the user is responsible for > issuing a query to load PostGIS (select st_point(1,1); above) and then she > is able to execute MobilityDB queries. Calling a function that exists in some library will cause the library to be loaded. Alternatively, you can cause the library to be loaded automatically at some point of the start sequence, by shared_preload_libraries or the other configuration options. Or you can use the LOAD statement. If by whichever mechanism postgis has been loaded into your session, then calling a function in MobilityDB will work fine, because the postgis library will have been loaded. It doesn't matter exactly how was postgis loaded. The advantage of using shared_preload_libraries is performance of connection establishment: the library is loaded by the postmaster, so each new backend inherits it already loaded and doesn't have to load it itself. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I love the Postgres community. It's all about doing things _properly_. :-)" (David Garamond)