Re: Can we let extensions change their dumped catalog schemas? - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: Can we let extensions change their dumped catalog schemas?
Date
Msg-id CAAWbhmgcfcaCSjCjN1EyLJbhAHsFCeqYnnOTiZO2PBi+ThhU9Q@mail.gmail.com
Whole thread Raw
In response to Re: Can we let extensions change their dumped catalog schemas?  (Jacob Champion <jchampion@timescale.com>)
List pgsql-hackers
On Tue, Feb 7, 2023 at 10:16 AM Jacob Champion <jchampion@timescale.com> wrote:
> Even more concretely, here's a draft patch. There's no nuance --
> setting dump_version affects all past versions of the extension, and
> it can't be turned off at restore time. So extensions opting in would
> have to be written to be side-by-side installable. (Ours is, in its
> own way, but the PGDG installers don't allow it -- which maybe
> highlights a weakness in this approach.) I'm still not sure if this
> addresses Tom's concerns, or just adds new ones.

Any general thoughts on this approach? I don't think it's baked enough
for registration yet, but I also don't know what approach would be
better.

Given the recent chatter around extension versions in other threads
[1, 2], I feel like there is a big gap between the Postgres core
expectations and what extension authors are actually doing when it
comes to handling version upgrades. I'd like to chip away at that,
somehow.

Thanks,
--Jacob

[1] https://www.postgresql.org/message-id/212074.1678301349%40sss.pgh.pa.us
[2] https://www.postgresql.org/message-id/CA%2BTgmoYqK6nfP15SjuyO6t5jOmymG%3DqO7JOOVJdTOj96L0XJ1Q%40mail.gmail.com



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: Get rid of PgStat_BackendFunctionEntry
Next
From: Andrew Dunstan
Date:
Subject: Re: SQL/JSON revisited