Skip to content

Conversation

@tdrz
Copy link
Collaborator

@tdrz tdrz commented Oct 3, 2025

[HELP WANTED]

We are looking for help making PostGIS a reality for PGlite.

The bulk of the work has been done, the extension is built as part of the entire build process and there are even a few PostGIS test that pass! But some don't, see all of them in packages/pglite/tests/postgis.test.ts.

There are multiple issues:

  1. Identify the missing exported functions that PostGIS is expecting from PGlite (they need to be added to postgres-pglite/pglite-wasm/included.pglite.imports). We think we have achieved this - more tests needed.
  2. For the moment, we don't want to use threads in PGlite, so all dependencies and PostGIS itself need to explicitly be built without threads support. Some are already, see postgres-pglite/pglite-wasm/builder/Dockerfile but some are not because pthread required functions still sneak in.
  3. Add more tests such that we are sure the PostGIS works as expected. Ideally we would run PostGIS tests against a PGlite instance (possibly using pglite-socket).
  4. Manual test - if you have an app that uses Postgresql + PostGIS, please try it with PGlite + PostGIS (you can manually download the package that contains it from a CI run related to this PR).

Other:
a. Although libgdal is present in the docker builder image, it is not currently used by the final extension. Something to look into.
b. I've build all deps as static libs and now I am doubting that this is the right course of actions (mainly because of difficulties of also linking libgdal to the final extension).

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

@tdrz tdrz marked this pull request as draft October 15, 2025 12:06
@tdrz tdrz changed the title PostGIS [Help wanted] PostGIS Nov 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants