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

From Euler Taveira
Subject Re: Add Postgres module info
Date
Msg-id e0e12947-6dfb-4c3a-b6ad-5682a880cda4@app.fastmail.com
Whole thread Raw
In response to Re: Add Postgres module info  (Andres Freund <andres@anarazel.de>)
Responses Re: Add Postgres module info
Re: Add Postgres module info
List pgsql-hackers
On Wed, Dec 11, 2024, at 4:26 PM, Andres Freund wrote:
On 2024-12-11 13:21:03 -0500, Tom Lane wrote:
> Andrei Lepikhov <lepihov@gmail.com> writes:
> > I would like to propose the module_info structure, which aims to let
> > extension maintainers sew some data into the binary file. Being included
> > in the module code, this information remains unchanged and is available
> > for reading by a backend.
>
> I don't have much of an opinion one way or the other about the
> usefulness of these additional info fields.

FWIW, Id like to have some more information in there, without commenting on
the specifics.

+1 for the general idea. 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. In a
managed environment, it is hard to figure out the exact version for
non-CREATE-EXTENSION modules, unless it is explicitly informed by the vendor.



--
Euler Taveira

pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: Adding a '--two-phase' option to 'pg_createsubscriber' utility.
Next
From: Andrei Lepikhov
Date:
Subject: Re: Add Postgres module info