Skip to content

PostGIS/GIS support #2789

Open
prisma/prisma-engines
#4208

Description

@steebchen

PostGIS is a popular extension to support geolocation data types and queries in Postgres. We should think about how we can add support for PostGIS, both for data types and how querying data would look like.

Activity

  1. ShanonJackson commented on Mar 13, 2021

    @ShanonJackson

    Hope coming?

  2. reslear commented on Mar 14, 2021

    @reslear

    @matthewmueller is planned before 2022?

  3. AviSantoso commented on Apr 1, 2021

    @AviSantoso

    +1

  4. garytube commented on Apr 20, 2021

    @garytube

    Same. It would be helpfule if Prisma Migrate would save the the extensions when resetting the database.

    CREATE EXTENSION postgis; needs to be added to the migration_xxx.sql file

    Error: Database error
    Error querying the database: db error: ERROR: type "geography" does not exist
       0: migration_core::api::ApplyMigrations
                 at migration-engine/core/src/api.rs:73
    

    If you create the extension by hand before running prisma migrate you can prevent this error

  5. reslear commented on Apr 20, 2021

    @reslear

    @garytube of course, yes need support most popular types geography and geometry)

  6. VinayaSathyanarayana commented on May 20, 2021

    @VinayaSathyanarayana

    When is this expected?

  7. psmaAaron commented on Aug 3, 2021

    @psmaAaron

    A big +1 for this!

    I know for my use cases, having the resulting geometry in GeoJSON is perfect. A simple wrapping of the Geometry columns in ST_AsGeoJSON would be a great start. It can then be fed into Turf for processing and/or displayed in Leaflet/MapLibre GL JS/whatever quite easily!

    Edit: Most of the stuff I work on is pulling from the DBs, so creating/updating is a bit of a blindspot. But I assume when writing, the ST_GeomFromGeoJSON function would work going in the reverse.

  8. MurzNN commented on Aug 3, 2021

    @MurzNN

    As first little starting step will be good to add support for Point postgres field type, because it is very popular in projects even without PostGIS extension.

  9. j0hannr commented on Aug 19, 2021

    @j0hannr

    +1

  10. 125 remaining items

  11. ahmadjoya commented on Oct 14, 2025

    @ahmadjoya

    any update?

  12. AdrianPaulV commented on Feb 9, 2026

    @AdrianPaulV

    Support for PostGIS please!!!

  13. samresh9 commented on Feb 11, 2026

    @samresh9

    Support for PostGIS please

  14. oskolsky commented on Mar 3, 2026

    @oskolsky

    Support for PostGIS please

  15. SentryAryan commented on Mar 18, 2026

    @SentryAryan

    Support for PostGIS please

  16. lh0x00 commented on Mar 21, 2026

    @lh0x00

    I’ve created a PR for this feature. I mentioned it before, but I only just found the time to work on it today. If you’re happy with it, feel free to leave a reaction and follow me—really appreciate it!
    PRs: #29365 prisma/prisma-engines#5797 prisma/web#7685

  17. karljv commented on May 14, 2026

    @karljv

    Please merge! PostGIS support would be great!

  18. jannis6023 commented on May 14, 2026

    @jannis6023

    Please merge! PostGIS support would be great!

    Hi,
    this docs page looks like it has already been merged in some way:
    https://www.prisma.io/docs/orm/prisma-schema/postgresql-extensions

  19. lh0x00 commented on May 14, 2026

    @lh0x00

    This feature includes multiple PRs, but only the document PRs have been merged; the implementations in prisma/prisma-engines#5797 #29365 have not yet been merged.

  20. ussfranck commented on Sep 6, 2026

    @ussfranck

    @matthewmueller is planned before 2022?

    Still not supported in 2026...

  21. lh0x00 commented on Sep 7, 2026

    @lh0x00
  22. ofekBerko commented on Sep 11, 2026

    @ofekBerko

    GTA 6 will be released before the feature becomes available

  23. MurzNN commented on Sep 11, 2026

    @MurzNN

    GTA 6 will be released before the feature becomes available

    Will GTA 6 support PostGIS? 😂

  24. ussfranck commented on Sep 11, 2026

    @ussfranck

    @ussfranck try https://www.npmjs.com/package/@vertexa/prisma, a fork version support postgis

    Oh Interesting...
    Thank u very much 🙏🏽

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions