pglite icon indicating copy to clipboard operation
pglite copied to clipboard

PostgreSQL 17 support

Open liudonghua123 opened this issue 1 year ago • 1 comments

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.

liudonghua123 avatar Sep 29 '24 01:09 liudonghua123

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.

samwillis avatar Sep 29 '24 15:09 samwillis

Also hoping for pg v17 support.

Happy to see there is a plan for this.

kjaymiller avatar Jan 31 '25 14:01 kjaymiller

How can we know what versions of Postgres are supported? I have not been able to find that information anywhere.

electrovir avatar Apr 01 '25 01:04 electrovir

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.)

electrovir avatar Apr 12 '25 17:04 electrovir

On a running db you can also of course select version();

AntonOfTheWoods avatar Apr 12 '25 22:04 AntonOfTheWoods

v17 is in main and on npmjs as a next version.

tdrz avatar Apr 21 '25 14:04 tdrz

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

electrovir avatar Apr 24 '25 12:04 electrovir