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.96) (envelope-from ) id 1wTz6x-000sMB-0e for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 09:39:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTz6v-009ge4-2a for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Jun 2026 09:39:05 +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.96) (envelope-from ) id 1wTz6v-009gdw-1e for pgsql-hackers@lists.postgresql.org; Mon, 01 Jun 2026 09:39:05 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wTz6t-00000000dKX-0lMi for pgsql-hackers@postgresql.org; Mon, 01 Jun 2026 09:39:05 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-7e0aa486af8so11315677b3.1 for ; Mon, 01 Jun 2026 02:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780306741; x=1780911541; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=miklWEek+nEzSN78ZQwp4AJKr1hXkxauyGGV2cfNNNQ=; b=LvLZmeDjzuWel+nugq/T7ddxVYlznA1lk9n+sjrJ18gWYxdVVLdUeCOHkxs/Fhmymz KaxMCml9iQvI+Bj7EZRpfku2nBHeA4AoTyXwg8/rVZR0bzYFi80pqPPxFTeXTpA++dML Jnr57vbA1TgASszx/KuY70oDpBJw7lk/aT+qOhVq3qypJDpDQ7cULBVVFS5f6c7XHhQ0 HlLDPTjJz26rEGv7PLCfI4IuRsuvMn4yUYHSPiWNT04Gt7PbuQ4XuiSNZ6De/ZCtxPDd 2VAtv5itiIk+4qKZWnmKeOSLlkBzSw3N83vklWjkK+CxVj81+2ENevdkWLv1ppU3QTtp DyTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780306741; x=1780911541; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=miklWEek+nEzSN78ZQwp4AJKr1hXkxauyGGV2cfNNNQ=; b=cGCrSEdW9X/BabdYCYyetXBgwv4HFDUW9+vNmhR9TQhJu0ZQMrrXcVLLdU9hRBN9qd Gtr2Msu/53emqYGKSs4APcP2tD4GE28INGRrYaGqPQh/L3alwOPUcUJU9E/3o5G4ulKs B9u6tOTwxaaNNY0ABJWXMNEBIHrFEt+0ZPfq81kiYtdO8Btxmcq/aHWwD38QgtOjQpJz 4H9vRVzgq/HfcbU8bVqwvoSZriGshwQhxaaoVvK90tPIqY/lyR9NlkWXX+lvO/FdpuI4 QCnRImurYsiigufYjCRvoP6ytNFw008pikb9COcZusBd9UhTiUofJVqPJJ9sMXD1Ywsm prcQ== X-Forwarded-Encrypted: i=1; AFNElJ9aepxjLtPtf5iS373urO5/0SF/+XYKzbPKoaBJ7ahAgzZkP0g9u/snhPhG1VnnNGAWyNWa0ltDNaihV0yV@postgresql.org X-Gm-Message-State: AOJu0YznO6wuyKoTV11IbQSShDhXCg//cHqml7LRffwDaoInNd8/teqv Kwn1hxEtPd/VAlEFRj3ASq5LdtUID+r9kl7dmSgPj3oz8XrfMjpvKhmg X-Gm-Gg: Acq92OHjmOTAzjgw1KHw/mJkX8lvn0PqIxz4EKspQTql6gdpmX9Vgay5dnSO0tVoorf OllRIlP5xumeQ/NmfOPzq0B5TlvfO2TSZ4aOejjCK8lY4heJ3j+c3qIVCMVl0QgFgEU9dXI+BRV gkCtlYtO+s/2/0uWT/TM7byG3s1FOLSkvwzttXQHNyH4t3t5oxOQZRlYB4pvka88Yr6pKZljKzO Ygu2ExdX0ddEFT7Ow9Qr5JqFF4jJ45yaOTEYKudbG751fApTk+52eKXjWqpkXecwblG0PRKMjqd rI8t2PXqd/bbiY0ycNnUKJFZLNTQcUe+mgrLc0AVihd0HUf/XXcMh9wVA048DKmZyYxU9pklLGE kpcnuAubsBIUde+LF/sfRxxOzN2Fel9A+Er4eUM5LOVEZkH2j11QK+tmWH+rlwayv9W2puVLSgz 1K/+H4IdgJ2bZRq8u7JYlsE2iGea8BOvLi7+vMjOFTbERi0aPhKt4EPtAVd7RzzgYuVpTyB829N s2rOu/dG8eCn0QQWq1xD4OGPsqeZIyX X-Received: by 2002:a05:690c:6d81:b0:7e1:e496:ad86 with SMTP id 00721157ae682-7e1e4a5f7a7mr58163897b3.12.1780306740814; Mon, 01 Jun 2026 02:39:00 -0700 (PDT) Received: from ?IPV6:2804:14d:328a:a59c:6d98:d2ae:bc86:dacd? ([2804:14d:328a:a59c:6d98:d2ae:bc86:dacd]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7e175de0cf4sm36942077b3.9.2026.06.01.02.38.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jun 2026 02:39:00 -0700 (PDT) Message-ID: Date: Mon, 1 Jun 2026 06:38:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: glob support in extension_control_path/dynamic_library_path? To: Jakob Egger , pgsql-hackers@postgresql.org Cc: david@justatheory.com, Tobias Bussmann References: <173DB423-A230-41F8-AB24-2590C5053B8E@eggerapps.at> Content-Language: en-US From: Matheus Alcantara In-Reply-To: <173DB423-A230-41F8-AB24-2590C5053B8E@eggerapps.at> 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 29/05/26 09:26, Jakob Egger wrote: > Hello! > > The extension_control_path setting allowed us to offer precompiled downloadable extensions for Postgres.app: https://postgresapp.com/extensions/ > > We install extensions each into their own path, for example: > > /Users/USER/Library/Application Support/Postgres/Extensions/18/http > /Users/USER/Library/Application Support/Postgres/Extensions/18/pg_cron > .... > > This allows us to update extensions by just deleting the folder and installing the new version -- we don't need to track all the files belonging to an extension. If we put all separately downloaded extensions in a single directory we would be very likely to end up with orphaned files sooner or later. > > However, this leads to a rather lengthy configuration that needs to be updated whenever an extension is installed: > > extension_control_path="$system:/Users/jakob/Library/Application Support/Postgres/Extensions/18/pg_parquet/share/postgresql:/Users/jakob/Library/Application Support/Postgres/Extensions/18/pg_cron/share/postgresql:/Users/jakob/Library/Application Support/Postgres/Extensions/18/http/share/postgresql:/Users/jakob/Library/Application Support/Postgres/Extensions/18/timescaledb/share/postgresql:/Users/jakob/Library/Application Support/Postgres/Extensions/18/plv8/share/postgresql:/Users/jakob/Library/Application Support/Postgres/Extensions/18/pg_search/share/postgresql" > Yeah, I've also faced some configurations like this when working with extension_control_path. > It would be really nice if we could just use glob patterns like this: > > extension_control_path="$system:/Users/jakob/Library/Application Support/Postgres/Extensions/18/*/share/postgresql" > dynamic_library_path="$libdir:/Users/jakob/Library/Application Support/Postgres/Extensions/18/*/lib/postgresql" > > This would also have the advantage of not requiring a server restart after installing an extension. > > I believe this would also be useful for Docker use case mentioned in the original thread (https://www.postgresql.org/message-id/E7C7BFFB-8857-48D4-A71F-88B359FADCFD%40justatheory.com) when multiple extensions are used > > I have tried implementing this patch myself, and it was pretty straightforward to implement a proof of concept. > > I wonder if such an addition would be useful for other packagers? > Please, share the patch so we can better evaluate. -- Matheus Alcantara EDB: https://www.enterprisedb.com