Re: Add Postgres module info - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Add Postgres module info
Date
Msg-id 51416962-9118-41D7-B527-F99D81CF2B57@justatheory.com
Whole thread Raw
In response to Re: Add Postgres module info  ("Euler Taveira" <euler@eulerto.com>)
Responses Re: Add Postgres module info
Re: Add Postgres module info
List pgsql-hackers
On Dec 11, 2024, at 19:49, Euler Taveira <euler@eulerto.com> wrote:

>> FWIW, Id like to have some more information in there, without commenting on
>> the specifics.
>
> +1 for the general idea.

Same.

> I received some reports like [1] related to wal2json
> that people wants to obtain the output plugin version. Since it is not installed
> via CREATE EXTENSION, it is not possible to detect what version is installed,
> hence, some tools cannot have some logic to probe the module version.

I’m all for additional metadata for native extensions, but I’d also like to draw attention to the “Future” section my
proposal[1]to require that module-only extensions also include a control file and be loadable via CREATE EXTENSION (and
proposed*_preload_extensions GUCs[2]). This would unify how all types of extensions are added to a database, and would
includeversion information as for all other CREATE EXTENSION extensions. 

Not a mutually-exclusive proposal, of course; I think it makes sense to have metadata included in the binary itself.
Wouldbe useful to compare against what CREATE EXTENSION thinks is the version and raising an error or warning when they
diverge.

Best,

David

[1]: https://justatheory.com/2024/11/rfc-extension-packaging-lookup/#future-deprecate-load
[2]: https://justatheory.com/2024/11/rfc-extension-packaging-lookup/#extension-preloading


pgsql-hackers by date:

Previous
From: Marcos Pegoraro
Date:
Subject: Re: Document NULL
Next
From: Tom Lane
Date:
Subject: Re: [EXTERNAL] Re: Add non-blocking version of PQcancel