You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by patrick piemonte, benknab, tyio, Heb, wmurmann, Fabian Morón Zirfas, zigzactly, Alberto Fernandez, Hays Clark, Chris Kjær and 659 more
Reacted by Fish, Roberto Amaya, Raj K Singh, reslear, Piotr Blachnio, ahmed magdy, Tom, Kim Jeongwoo, Pedro Poveda, div and 78 more
Reacted by Nima Karimi, Bertrandmc, Michal Karták, Benjamin Tran Dinh, Piotr Blachnio, ahmed magdy, Tom, Faisal Alghurayri, Kim Jeongwoo, Aaron Styles and 140 more
Reacted by Tomas Centeno, Schalk, Archie Kennedy-Dyson, Nick Graef, Gabriel McReynolds, Faolain, Domagoj Vukovic, Claudio Fabião, Vasily Polonsky, Dion Abrashi and 55 more
Reacted by patrick piemonte, Hays Clark, Fish, Roberto Amaya, reslear, Maximilian Zauner, Michal Karták, Benjamin Tran Dinh, Thibaut Trouvé, Piotr Blachnio and 116 more
Reacted by reslear, Michal Karták, Martin Hammerchmidt, Thibaut Trouvé, Piotr Blachnio, Alexander Mason, ian, Ferhat Saritas, Stephane SEGNING LAMBOU, simon-bonnet and 17 more
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
Reacted by James Robinson, Thibaut Trouvé, Piotr Blachnio, Ferhat Saritas, Yuri Nezdemkovski, MarekChrono, Faolain, GPT8 and Andrii Oriekhov
Reacted by Shanon Jackson, Alexander Mason, Michal Karták, TakeIn, Salvador López Mendoza, Tom, Extarys, sammountford, Ferhat Saritas, Frank Blecha and 32 more
Reacted by Vinaya Sathyanarayana, Deojeff, Ben, rujorgensen, Andres Rodriguez, Ghiath, Momen, Ramzy Rashaun Arief, Faolain and Khalil Meziane
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.
Reacted by Anthony Luzquiños, Emir, Nischal, Dipesh Acharya and Paulo César Coronado
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.
Reacted by Aaron Styles, reslear, Kyle Kurtz, James, Thibaut Trouvé, Aaron Charcoal Styles, Adam Geiger, Steven, Nic Luciano, Michaël Roussel and 13 more
Reacted by Subramanya Chakravarthi, Razvan Bretoiu, Luís Felipe Mesquita Granja, Oleksii Duhnist, Matthias, Norbert Varga, weeix, Raj S. , Stanislav (Stanley) Modrak, SF-mloder and 8 more
Reacted by Fredrik K. Bore, Matthias, RandyLef and Can Vural
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: #29365prisma/prisma-engines#5797prisma/web#7685
Reacted by Hugues Tavernier, Aryan Srivastava, EL RHOURHA KARIM, Lan Tra, Anastasis Melachroinoudis, Coleman Kelleghan, Lucio Ladenheim, Olivier Ndikumana and Haseeb Khan
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.
Activity
ShanonJackson commentedon Mar 13, 2021
Hope coming?
reslear commentedon Mar 14, 2021
@matthewmueller is planned before 2022?
AviSantoso commentedon Apr 1, 2021
+1
garytube commentedon Apr 20, 2021
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 fileIf you create the extension by hand before running prisma migrate you can prevent this error
reslear commentedon Apr 20, 2021
@garytube of course, yes need support most popular types
geographyandgeometry)VinayaSathyanarayana commentedon May 20, 2021
When is this expected?
psmaAaron commentedon Aug 3, 2021
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_AsGeoJSONwould 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_GeomFromGeoJSONfunction would work going in the reverse.MurzNN commentedon Aug 3, 2021
As first little starting step will be good to add support for
Pointpostgres field type, because it is very popular in projects even without PostGIS extension.j0hannr commentedon Aug 19, 2021
+1
125 remaining items
ahmadjoya commentedon Oct 14, 2025
any update?
AdrianPaulV commentedon Feb 9, 2026
Support for PostGIS please!!!
samresh9 commentedon Feb 11, 2026
Support for PostGIS please
oskolsky commentedon Mar 3, 2026
Support for PostGIS please
SentryAryan commentedon Mar 18, 2026
Support for PostGIS please
lh0x00 commentedon Mar 21, 2026
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
karljv commentedon May 14, 2026
Please merge! PostGIS support would be great!
jannis6023 commentedon May 14, 2026
Hi,
this docs page looks like it has already been merged in some way:
https://www.prisma.io/docs/orm/prisma-schema/postgresql-extensions
lh0x00 commentedon May 14, 2026
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.
ussfranck commentedon Sep 6, 2026
Still not supported in 2026...
lh0x00 commentedon Sep 7, 2026
@ussfranck try https://www.npmjs.com/package/@vertexa/prisma, a fork version support postgis
ofekBerko commentedon Sep 11, 2026
GTA 6 will be released before the feature becomes available
MurzNN commentedon Sep 11, 2026
Will GTA 6 support PostGIS? 😂
ussfranck commentedon Sep 11, 2026
Oh Interesting...
Thank u very much 🙏🏽