PostgreSQL 17 support
I see postgresql 17 was released with a lot of improvements and bugfix.
So is there any plan or roadmap for supporting this major updates.
Yes, we will move to PG v17, but not quite yet.
We want to ensure there is a clean upgrade path first. The file storage for Postgres is not compatible between major versions, you normally have to move your data from one database to another, or do an in-place update of the database in order to move between them. The intention is to have, at a minimum, a WASM build of pg_dump before we move to PG v17, so that users can easily export a database and import it into a new PG v17 based PGlite.
There is also an open question as to if we want to have multiple versions of PGlite, one for each of the currently supported Postgres versions. There are compelling arguments for it, particularly with the local development, unit and CI testing use case where you would want to test against something representative of the major Postgres versions. However, we are a small team and maintaining multiple versions will eat away at time available for further research and development. I suspect we will one day do this, but we need to be much further down the development path for things like libpglite (a native library build), and have explored other development routes, such as multi connection support.
Also hoping for pg v17 support.
Happy to see there is a plan for this.
How can we know what versions of Postgres are supported? I have not been able to find that information anywhere.
How can we know what versions of Postgres are supported? I have not been able to find that information anywhere.
I did just discover that you can at least read the generated PG_VERSION file, after installing PGLite and initializing a database, to see the version your current database is at. (Mine just says 16.)
On a running db you can also of course select version();
v17 is in main and on npmjs as a next version.
v17 support is now on the primary release 🥳
- https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.3.0
- https://www.npmjs.com/package/@electric-sql/pglite/v/0.3.0