Closed demize closed 2 months ago
Hey @demize
Apologies for the confusion on that one. Postgres maintains binary compatibility within each of its major versions, but not access them. And as you noted we upgraded from a v15dev to v16 release.
Until we reach v1.0, minor changes may break compatibility. I hope we can reach a v1 in the next few months, we may have upgraded to PG v17 by then.
After that any time we upgrade to a new major PG version it will be a major version change to PGlite.
To aid in migrations between versions we are working on a WASM build of pg_dump and pg_restore, so that you can take a SQL dump of the old database and import into a new database. We will not move to v1 until we have this, and the plan is this would be available before we upgrade to PG v17, but I don't want to make that a firm promise.
I hope thats enough assurance there is a plan in place.
I've been working on implementing a database based on pglite for a little bit, and during this process I updated from 0.1.5 to 0.2.5, after which I received this error (reproduced in a temporary directory, since I lost my original output):
This indicates to me that the update to v16 (#112) broke backwards compatibility pretty spectacularly.
It's not an issue for me now (my code hasn't been rolled out yet), but I'd like to continue using pglite for this project, and I'd like to be able to continue updating it; is there any guidance on how to properly upgrade, or any plans to put together such a process?