Skip to content

docs: document PostGIS extensions option for point fields - #17360

Open
AbdulSamiWaseem wants to merge 2 commits into
payloadcms:mainfrom
AbdulSamiWaseem:docs/postgis-extensions-option
Open

AbdulSamiWaseem wants to merge 2 commits into
payloadcms:mainfrom
AbdulSamiWaseem:docs/postgis-extensions-option

Conversation

@AbdulSamiWaseem

@AbdulSamiWaseem AbdulSamiWaseem commented Jul 16, 2026 •

Copy link
Copy Markdown

Summary

  • Documents the extensions option on the Postgres adapters, including enabling PostGIS for Point fields
  • Cross-links from the Point field docs to the new PostGIS section

Fixes #17262

Test plan

  • Confirm Postgres docs render the new PostGIS section and options table row
  • Confirm Point field warning links to #postgis

@lu40

lu40 commented Jul 21, 2026

Copy link
Copy Markdown

Thanks a lot for taking care of this! I can say this covers everything I imagined and looked for in the docs :)

@zubricks
zubricks self-requested a review July 30, 2026 13:37
@zubricks

Copy link
Copy Markdown
Member

Hey @AbdulSamiWaseem this looks good overall. I have one suggested change to the the PostGIS section

The Point field requires the PostGIS extension on Postgres. Payload enables it automatically whenever a Point field is present, running CREATE EXTENSION IF NOT EXISTS "postgis" on connect. Your Postgres instance must have PostGIS available (installed on the server or included in your database image), and the connecting role must have privileges to create extensions.

Adding that last line feels like a good catch because if the role doesn't have CREATE EXTENSION privileges it will fail.

@AbdulSamiWaseem

Copy link
Copy Markdown
Author

Updated the PostGIS section to note that Payload enables it automatically when a Point field is present, and that the connecting role needs `CREATE EXTENSION` privileges. Also updated the Point field warning to match.

@AbdulSamiWaseem

Copy link
Copy Markdown
Author

Hi @zubricks Just following up on this PR. I addressed your suggested changes last week by clarifying that Payload auto-enables PostGIS when a Point field is present and that the connecting role needs CREATE EXTENSION privileges. Whenever you have a chance, I'd appreciate another look. Thanks!

This branch has not been deployed

No deployments
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.

Missing documentation for using PostGIS

3 participants