From: MMeent (@MMeent) <noreply+MMeent@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
Date: Sat, 04 Jan 2025 02:49:37 +0000
Message-ID: <gh-pgvector-pgvector-748-c2570019255@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-748@github.com>
References: <gh-pgvector-pgvector-748@github.com>
> Many (most?) extensions behave in the way that pgvector is set up.
True, but that's an issue with most extensions. Note that most `contrib` extensions don't have this issue and build forward on a base version, rather than only supplying the old version.
Another benefit is that it allows easier PG major version upgrades, as extension version migration wouldn't need synchronization of the exact pgvector version to its latest catalogs between the old and new cluster, as the new cluster could get installed with a slightly older catalog version of the extension at first, thus allowing the user to not upgrade pgvector on the old cluster.
Lastly, having a non-latest baseline to run the differential scripts on allows for better upgrade script consistency checking and detection of migration script-caused catalog contents drift over time: the upgrade path is different from fresh installs, but contents of catalogs are expected to be the same. If the upgrade scripts don't change across versions (well, except the addition of one per version for upgrading to the new version) then with a baseline you won't have to dig into historical releases to get a specific extension version's catalog specification, which can then be compared against a new install.