Re: Add Postgres module info
От | David E. Wheeler |
---|---|
Тема | Re: Add Postgres module info |
Дата | |
Msg-id | 51416962-9118-41D7-B527-F99D81CF2B57@justatheory.com обсуждение исходный текст |
Ответ на | Re: Add Postgres module info ("Euler Taveira" <euler@eulerto.com>) |
Ответы |
Re: Add Postgres module info
Re: Add Postgres module info |
Список | 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 по дате отправления: