pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
6+ messages / 3 participants
[nested] [flat]

* [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 01:27 "MMeent (@MMeent)" <noreply+MMeent@github.com>
  0 siblings, 0 replies; 6+ messages in thread

From: MMeent (@MMeent) @ 2025-01-04 01:27 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Currently, you can install only the latest version of PGVector, or upgrade the already installed version of PGVector to a later version.

It would be nice if there was a base version `sql/vector--0.5.0.sql` or such, so that users can also install each specific version of PGVector's catalog data (even if behaviour would still match that of the latest release) as this would allow us to write migrations that get the extension to a known state, rather than having to rely on an existing older installation.


^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 01:49 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: jkatz (@jkatz) @ 2025-01-04 01:49 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Why? I'm not quite sure what problem this is solving. Many (most?) extensions behave in the way that pgvector is set up.

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 02:37 ` "MMeent (@MMeent)" <noreply+MMeent@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: MMeent (@MMeent) @ 2025-01-04 02:37 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

The use case is closely related to customer's use of Prisma migrations, which seems to fail when a migration was made against pgvector 0.7.4, but is then subsequently (also) run against a PG with pgvector 0.8.0 installed, presumably due to strict pre- and/or post-condition checks in the migration or tooling.

E.g. a user could well ask for pgvector VERSION '0.7.4', but currently only if they had version < 0.7.4 installed, not fresh from 0.8.0 data.


^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 02:49 ` "MMeent (@MMeent)" <noreply+MMeent@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: MMeent (@MMeent) @ 2025-01-04 02:49 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@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.

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 17:44 ` "ankane (@ankane)" <noreply+ankane@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: ankane (@ankane) @ 2025-01-04 17:44 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@MMeent Thanks for the suggestion. I don't see a strong reason to change the current approach, but may revisit in the future.

Edit: Also, some updates in the past have not been possible with an upgrade script (like changing the storage type of `vector` for Postgres < 13).

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest
@ 2025-01-04 17:44 ` "ankane (@ankane)" <noreply+ankane@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: ankane (@ankane) @ 2025-01-04 17:44 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-01-04 17:44 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-04 01:27 [pgvector/pgvector] issue #748: Allow fresh installations of older PGVector versions than just $latest "MMeent (@MMeent)" <noreply+MMeent@github.com>
2025-01-04 01:49 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2025-01-04 02:37 ` "MMeent (@MMeent)" <noreply+MMeent@github.com>
2025-01-04 02:49 ` "MMeent (@MMeent)" <noreply+MMeent@github.com>
2025-01-04 17:44 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-04 17:44 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox