How to Connect ArcGIS Pro to a PostGIS Database
PostGIS extends PostgreSQL with spatial data types, indexes, and geospatial functions. ArcGIS Pro can connect directly to PostgreSQL databases that contain PostGIS geometry or geography data, allowing you to browse, map, query, analyze, and—when the database and data meet Esri’s editing requirements—manage spatial content from ArcGIS workflows.
A successful connection depends on more than a hostname and password. You must verify the ArcGIS Pro and PostgreSQL/PostGIS versions, allow network connections, configure PostgreSQL authentication, use a supported spatial type, grant the correct database and schema privileges, and choose the right authentication and security settings.
This guide focuses on connecting ArcGIS Pro to a PostgreSQL database with PostGIS. It also explains the difference between a plain PostGIS database and a PostgreSQL enterprise geodatabase.
What you can connect to
ArcGIS Pro supports connections to PostgreSQL databases that may contain:
- Ordinary PostgreSQL tables
- PostGIS geometry columns
- PostGIS geography columns
- Esri ST_Geometry columns
- An enterprise geodatabase in PostgreSQL
- Views and queryable database objects that meet ArcGIS requirements
A PostgreSQL database does not need to contain an ArcGIS enterprise geodatabase for ArcGIS Pro to connect to it. PostGIS is a third-party open-source spatial extension, while an enterprise geodatabase adds Esri geodatabase behavior and system tables. Choose the architecture based on editing, versioning, administration, and publishing requirements.
ArcGIS documentation identifies three supported spatial types in PostgreSQL: ST_Geometry, PostGIS geometry, and PostGIS geography. 1
Before creating the connection
Collect the following information from the database administrator:
- PostgreSQL server hostname or IP address
- PostgreSQL port, usually 5432
- Database name
- Database username and password, or the operating-system authentication method
- Default schema or schemas to be accessed
- PostGIS installation and version
- PostgreSQL version
- SSL or certificate requirements
- Whether the database is local, on a private network, or hosted in a cloud service
- Required database, schema, table, sequence, and function privileges
- Whether the connection will be used only in ArcGIS Pro or also by ArcGIS Enterprise
Do not put production credentials in a public tutorial, screenshot, script, or shared .sde file.
Check supported versions
Esri certifies specific PostgreSQL and PostGIS combinations for each ArcGIS Pro release. The supported versions change over time, so check the requirements page for the ArcGIS Pro version installed in your organization before upgrading the database or client.
Do not treat “PostgreSQL works with PostGIS” as equivalent to “this PostgreSQL/PostGIS combination is certified for ArcGIS Pro.” The current Esri requirements documentation lists supported major and minimum certified minor versions and notes that later minor releases may be supported without being certified. 2
For production work:
- Record the ArcGIS Pro release.
- Record the PostgreSQL major and minor version.
- Record the PostGIS version.
- Check Esri’s supported-environment documentation.
- Test in a nonproduction database before upgrading.
- Check compatibility again before a future ArcGIS Pro or PostgreSQL upgrade.
PostgreSQL client libraries: current guidance
Older tutorials often instruct users to download libpq files and copy DLLs into the ArcGIS Pro bin folder. That is not the normal current workflow for ArcGIS Pro.
Esri states that PostgreSQL client files required for a connection are installed with ArcGIS Pro. You generally do not need to install a separate PostgreSQL client or set environment variables just to create a PostgreSQL connection in ArcGIS Pro. 3
If a connection reports a client-library error:
- Confirm that ArcGIS Pro is installed correctly.
- Confirm that the database platform is set to PostgreSQL.
- Check the ArcGIS Pro release and supported database matrix.
- Review Esri installation or patch guidance.
- Avoid mixing arbitrary PostgreSQL DLL versions into the ArcGIS Pro installation directory.
- Ask the administrator whether security software or application isolation is blocking the client components.
A separate psql installation may still be useful for database administration and testing, but it is not a prerequisite for the standard ArcGIS Pro connection dialog.
Configure PostgreSQL to accept the connection
Listen on the required network interface
PostgreSQL commonly listens only on the local loopback interface by default. A remote ArcGIS Pro computer cannot connect until PostgreSQL is configured to listen on the appropriate network address.
The database administrator should review listen_addresses and the server firewall. Do not expose PostgreSQL directly to the public internet merely to make a desktop connection work.
Prefer:
- A private network
- VPN access
- A controlled cloud network
- Firewall rules limited to known client addresses
- TLS/SSL where required
- Strong database authentication
Configure pg_hba.conf
PostgreSQL uses pg_hba.conf for host-based client authentication. Each matching record specifies a connection type, client address range, database, user, and authentication method. PostgreSQL uses the first matching record; there is no fall-through to a later rule if authentication fails. 4
A database administrator should create the narrowest rule that supports the actual ArcGIS Pro clients. Avoid broad rules such as allowing all users from all addresses unless this is explicitly required and secured by other controls.
After changing pg_hba.conf, reload PostgreSQL according to the server operating system and deployment method. On many systems, changes are read on reload; on Windows, subsequent connections use the updated configuration as described by PostgreSQL documentation. 4
SSL and certificates
If the server requires SSL, the PostgreSQL server, pg_hba.conf, certificates, network path, and ArcGIS Pro connection properties must agree. A connection can fail when:
- The server requires SSL but the client is configured otherwise.
- The certificate name does not match the hostname.
- The certificate authority is not trusted.
- A proxy or firewall terminates the connection.
- The required SSL mode is not configured.
Confirm the organization’s SSL policy and use the database hostname that matches the certificate where required. Do not disable certificate verification as a casual troubleshooting step in production.
Verify PostGIS and spatial columns
From a PostgreSQL administration tool, verify that:
- The target database contains the PostGIS extension where required.
- The spatial table has a supported geometry or geography column.
- The geometry type is supported by the intended ArcGIS workflow.
- The spatial reference identifier is valid.
- Geometry validity has been checked.
- A spatial index exists for tables used in map display or spatial queries.
- The table has a stable unique identifier when ArcGIS requires one.
A simple PostGIS table might use a geometry column such as:
CREATE TABLE public.parcels (
parcel_id bigint PRIMARY KEY,
name text,
geom geometry(Polygon, 4326)
);
The exact type, SRID, schema, identifier, constraints, and index should be designed for the project. Do not copy this example into production without understanding the database design.
A spatial index is commonly created with:
CREATE INDEX parcels_geom_gix
ON public.parcels
USING GIST (geom);
ArcGIS Pro can read spatial data without a spatial index, but map drawing and spatial queries may be much slower, especially for large tables.
Geometry versus geography
PostGIS geometry stores coordinates in a projected or geographic coordinate system and is commonly used for planar operations within a defined spatial reference.
PostGIS geography is designed for geographic coordinates and geodesic behavior on the earth. It can be useful for global or large-area distance and area calculations, but not every ArcGIS operation treats geometry and geography identically.
For an ArcGIS workflow, confirm:
- Which spatial type the table uses
- Whether the intended tools support it
- Whether measurements should be planar or geodesic
- Whether the data crosses the antimeridian or spans a large region
- Whether a view using a supported geometry type is more appropriate
Do not change a spatial column’s type casually in production. Create a controlled view or converted table if a workflow requires a different type.
Create a PostgreSQL connection in ArcGIS Pro
Step 1: Open the Catalog pane
- Start ArcGIS Pro.
- Open a project.
- Open the Catalog pane.
- Right-click Databases or a folder under Folders.
- Select New Database Connection.
Step 2: Select PostgreSQL
In the Database Connection dialog:
- Set Database Platform to
PostgreSQL. - Enter the PostgreSQL server in Instance.
- Choose the authentication type.
- Enter the database name.
- Configure additional properties if required.
- Choose a connection-file name.
- Validate and create the connection.
Step 3: Enter the instance
For a server using the default port, enter the hostname or IP address, such as:
postgis.example.org
For a nondefault port, Esri documents either including the port in the instance using the supported syntax or entering it as an additional Port property. The exact dialog field should be checked for the ArcGIS Pro release in use. 3
Examples of server values may include:
postgis.example.org
10.20.30.15
For cloud PostgreSQL services, use the provider’s database endpoint and follow the provider’s network, SSL, firewall, and authentication requirements. Esri documents examples for supported services such as Amazon RDS, Google Cloud SQL, and Azure PostgreSQL offerings. 3
Step 4: Choose authentication
Database authentication
Choose Database authentication when PostgreSQL manages the username and password.
Enter:
- Username
- Password
You may choose whether to save the username and password in the connection file. Saving credentials may be required for some automated, search, or server-registration workflows, but it increases the importance of protecting the .sde file. 3
Operating-system authentication
Choose Operating system authentication only when the PostgreSQL server and organization are configured for it. ArcGIS supports PostgreSQL operating-system authentication scenarios such as SSPI and LDAP, but the operating-system login must map to a valid PostgreSQL login and have the required database privileges. 3
Do not select operating-system authentication simply because the Windows account has access to the computer. PostgreSQL must be configured to recognize and authorize the login.
Step 5: Choose the database
Select or enter the PostgreSQL database name. The database must exist, accept the connection, and be accessible to the authenticated user.
A successful connection to the PostgreSQL server does not automatically grant access to every database, schema, or table.
Step 6: Configure additional properties
Use Additional Properties when the deployment requires values such as:
- Nondefault port
- SSL-related properties supported by the ArcGIS Pro release
- Other database connection options exposed in the dialog
Use the property names and values supported by the installed ArcGIS Pro version. Do not invent connection-string parameters in fields that do not accept them.
Step 7: Validate
Click Validate before creating the connection. Validation checks whether ArcGIS Pro can reach the database using the supplied properties and credentials.
If the database contains an enterprise geodatabase and the connection is valid, geodatabase connection properties may become available for version or historical-moment workflows. 3
Step 8: Create the connection file
Click OK. ArcGIS Pro creates a database connection file with the .sde extension and adds the connection under Databases in the Catalog pane.
Protect the .sde file as you would protect a credential-bearing configuration file when saved credentials are included.
Browse PostGIS tables in ArcGIS Pro
After the connection appears in the Catalog pane:
- Expand the database connection.
- Browse schemas and tables.
- Identify spatial tables and views.
- Add a table or feature class to a map.
- Inspect the layer’s source, fields, CRS, extent, geometry type, and rendering.
If the table is not visible:
- Confirm the correct database was selected.
- Confirm the user can connect to the database.
- Confirm
CONNECTprivilege on the database. - Confirm
USAGEprivilege on the schema. - Confirm
SELECTprivilege on the table or view. - Check whether the table has a supported spatial column.
- Refresh the connection in the Catalog pane.
- Check for a naming or object-visibility issue.
PostgreSQL and schema privileges
A useful permission model separates database access, schema access, table access, and editing rights.
The account generally needs appropriate privileges for the intended workflow, such as:
CONNECTon the databaseUSAGEon the schemaSELECTon tables and views for read-only mapping- Sequence privileges where inserts or edits use sequences
INSERT,UPDATE, andDELETEwhere editing is supported and intended- Table ownership or geodatabase privileges for administrative operations
- Function privileges where queries use database functions
The exact privileges depend on whether the database contains an enterprise geodatabase, ordinary PostGIS tables, views, or data used by ArcGIS Enterprise services.
Do not grant superuser privileges to a desktop GIS account just to make a layer visible. Grant only the privileges required for the task.
Editing considerations
This is an important limitation that many short tutorials omit.
ArcGIS Pro can connect to and use PostgreSQL data for viewing, querying, and analysis. However, Esri’s database requirements state that when using a database connection file to access PostgreSQL data in ArcGIS Pro, you can edit only data that is registered with the geodatabase. 2
Therefore:
- A plain PostGIS table may be readable and usable in analysis without being directly editable from ArcGIS Pro in the same way as a registered enterprise-geodatabase feature class.
- An enterprise geodatabase feature class requires appropriate geodatabase registration, privileges, and configuration for editing.
- A supported web feature layer that references database data may provide an editing workflow through ArcGIS Enterprise.
- Database administrators can still edit ordinary PostGIS tables through PostgreSQL tools or SQL, subject to database permissions.
Before promising “read/write PostGIS editing,” identify whether the data is a registered enterprise-geodatabase dataset or ordinary PostGIS data and which application is expected to perform the edits.
Publish PostgreSQL data through ArcGIS Enterprise
If the connected data will support ArcGIS Server or ArcGIS Enterprise web services, the server must be able to access the database independently of the desktop computer.
The usual pattern is:
- Create and test the database connection in ArcGIS Pro.
- Save the connection information as required by the server workflow.
- Register the database connection or data store with ArcGIS Enterprise.
- Ensure the ArcGIS Server account can reach the database.
- Grant the server-side database account the required privileges.
- Publish and test the service.
A connection that works from the analyst’s laptop does not prove that ArcGIS Server can reach the database. The server needs its own network route, firewall permission, authentication mapping, and database privileges.
Esri states that the connection file must save user information when it is used for certain ArcGIS Server web-service access and registration workflows. 3
Performance best practices
Use a spatial index
Create and maintain a spatial index for large spatial tables. Without one, map drawing and spatial filters can scan far more rows than necessary.
Limit the data returned
Use:
- Spatial and attribute filters
- Database views
- Generalized display tables
- Appropriate map scale ranges
- Query layers where suitable
- Materialized views for expensive repeated results
Do not load millions of detailed features into a map at every scale.
Avoid SELECT *-style overfetching
Expose only the fields needed by the map, analysis, or service. Very wide tables with large text, geometry, or JSON fields can slow discovery and display.
Use appropriate geometry
Avoid transforming every feature repeatedly during display. Store data in a suitable CRS or create a view or derived table for a known display workflow where justified.
Keep statistics and maintenance current
PostgreSQL query planning depends on table statistics and maintenance. Coordinate database maintenance with the administrator. ArcGIS Pro performance problems are not always caused by ArcGIS; they may originate in query plans, locks, storage, network latency, or server resources.
Use views deliberately
A view can expose a clean schema and hide sensitive columns, but complex views may be slower or may not be editable. Test the view in ArcGIS Pro and document its dependencies.
Security best practices
- Use a dedicated least-privilege GIS login.
- Do not share a credential-bearing
.sdefile by email or public repository. - Store connection files in protected locations.
- Use SSL/TLS according to organizational policy.
- Limit database firewall rules to necessary clients or server hosts.
- Do not expose PostgreSQL publicly without a security design.
- Avoid using the database superuser from ArcGIS Pro.
- Rotate passwords and certificates according to policy.
- Remove saved credentials from test files before sharing them.
- Audit which ArcGIS Enterprise services can access the database.
Remember that a .sde file can contain or reference sensitive connection information even when the filename itself looks harmless.
Troubleshooting connection failures
“Could not connect to the server”
Check:
- Hostname resolution
- IP address
- PostgreSQL service status
- Server firewall
- Client network route or VPN
listen_addresses- PostgreSQL port
- Cloud security-group rules
pg_hba.conf
A refused connection usually indicates a network, listener, firewall, or port problem before it indicates a spatial-data problem.
“No pg_hba.conf entry”
The client reached PostgreSQL, but no pg_hba.conf rule matched the client address, database, user, and connection type. Ask the database administrator to add a narrow, policy-compliant rule and reload the configuration. PostgreSQL uses the first matching rule. 4
Password authentication failed
Check:
- Username spelling and case behavior
- Password
- Database name
- Authentication method in
pg_hba.conf - Whether the account is expired or locked by the deployment
- Whether a saved credential in an existing
.sdefile is being reused
Test with a controlled database client if permitted, but do not copy arbitrary client DLLs into ArcGIS Pro.
SSL or certificate error
Check:
- Whether the server requires SSL
- SSL mode or additional connection properties
- Certificate authority trust
- Hostname matching the certificate
- Proxy or firewall behavior
- Server and client clock settings
- Database server certificate validity
Do not turn off certificate validation in production to hide the error.
Database or schema is empty
Check database CONNECT, schema USAGE, and table SELECT privileges. Confirm that the expected objects exist in the selected database, not only in another database on the same PostgreSQL cluster.
Table is visible but cannot be added to a map
Check:
- Supported geometry type
- Spatial column name and type
- Valid SRID
- Geometry validity
- Null or empty geometries
- Unique identifier requirements
- Whether the table is a view with unsupported behavior
- Whether permissions allow selecting the geometry column
Layer appears in the wrong location
Check:
- Geometry SRID
- Actual coordinate values
- Assigned spatial reference metadata
- Whether coordinates are degrees, feet, or meters
- Whether the data was loaded with the wrong CRS
- Axis-order and transformation assumptions
- Whether the map is displaying the correct source
Changing the map’s CRS does not repair incorrectly stored coordinates.
The layer is slow
Check:
- Spatial index
- Attribute indexes
- Query filters
- Table statistics
- Network latency
- Database locks
- Geometry size and complexity
- Number of fields returned
- View complexity
- Reprojection during display
- Server CPU, memory, and storage
Use database-side query plans with the administrator when investigating expensive queries.
Edits are unavailable
Determine whether the data is registered with an enterprise geodatabase and whether the connection account has edit privileges. A plain PostGIS table may be readable but not directly editable through the same ArcGIS Pro workflow. 2
ArcGIS Enterprise publishing fails
Test connectivity from the ArcGIS Server machine, not only from ArcGIS Pro. Register the correct .sde connection, save credentials when required, and ensure the server account has access to the database, schema, tables, spatial columns, and referenced views.
A repeatable connection checklist
Use this sequence for a new environment:
- Record ArcGIS Pro and PostgreSQL/PostGIS versions.
- Check Esri support requirements.
- Confirm the database host, port, and name.
- Confirm PostGIS or the intended spatial type is installed.
- Confirm the server listens on the required network interface.
- Configure firewall and VPN access.
- Configure a narrow
pg_hba.confrule. - Confirm SSL and certificate requirements.
- Create a least-privilege database login.
- Grant database, schema, table, and sequence privileges as required.
- Confirm geometry types, SRIDs, unique identifiers, and spatial indexes.
- Create the ArcGIS Pro database connection.
- Validate the connection.
- Browse and map a small test table.
- Test a representative query and map scale.
- Confirm whether editing is required and supported.
- Register the connection with ArcGIS Enterprise if publishing.
- Test from the server environment.
- Document the connection properties without publishing credentials.
Frequently asked questions
Do I need to install PostgreSQL client libraries for ArcGIS Pro?
Current Esri documentation states that PostgreSQL client files are installed with ArcGIS Pro. You generally do not need to install a separate PostgreSQL client or set environment variables for the standard ArcGIS Pro connection workflow. 3
Can ArcGIS Pro connect to a normal PostgreSQL database without PostGIS?
ArcGIS Pro can connect to supported PostgreSQL databases, but spatial tables require a supported spatial type. For PostGIS spatial data, install and configure PostGIS in the database. ArcGIS supports PostGIS geometry and geography as well as Esri ST_Geometry. 1
What port does PostgreSQL use?
The default PostgreSQL port is usually 5432, but deployments can use another port. Configure the actual server port in the ArcGIS Pro connection and firewall.
What should I enter in the Instance field?
Enter the PostgreSQL server or database-cluster host. If the server uses a nondefault port, provide it using the supported instance or Additional Properties syntax for your ArcGIS Pro release. 3
Can I use an IP address instead of a hostname?
Yes, when network routing and the server’s security policy permit it. For SSL, the hostname may be important because the certificate must match the name used by the client.
Can I connect to PostGIS hosted in the cloud?
Often, if the service is supported, reachable, correctly secured, and configured for PostgreSQL connections. Use the provider’s endpoint, port, SSL, firewall, and authentication requirements, and check Esri’s current cloud-support documentation.
Can I edit PostGIS tables directly in ArcGIS Pro?
Editing depends on the data and geodatabase configuration. Esri states that data accessed through a database connection file can be edited in ArcGIS Pro only when it is registered with the geodatabase. Plain PostGIS tables may be readable and analyzable without being directly editable through the same workflow. 2
Does PostGIS need to be installed in every ArcGIS Pro computer?
No. PostGIS is installed and configured on the PostgreSQL server or database service. ArcGIS Pro uses its included PostgreSQL client components to connect.
What is the difference between PostGIS geometry and geography?
Geometry is commonly used for planar or projected spatial operations, while geography is designed for geographic coordinates and geodesic behavior. ArcGIS supports both, but tool support and measurement behavior should be tested for the specific workflow.
Why can I connect but not see my tables?
Check the selected database, schema USAGE, table SELECT, spatial column, object visibility, layer refresh, and whether the objects are in another schema or database.
Why is my table slow in ArcGIS Pro?
Check spatial indexes, filters, table statistics, geometry complexity, network latency, reprojection, view complexity, and database query plans. A spatial index is especially important for large map layers.
Can I use a shared .sde file?
You can share a connection file only under an approved security model. A saved username and password may be embedded or required for certain workflows, so protect the file and do not place it in public repositories or unencrypted shared folders.
Can I publish PostGIS data to ArcGIS Enterprise?
Yes, when the database, connection file, server network, authentication, privileges, and registration are configured correctly. Register the database connection with ArcGIS Enterprise and test from the ArcGIS Server environment.
Conclusion
Connecting ArcGIS Pro to PostGIS requires coordination between the desktop GIS, PostgreSQL server, network, authentication configuration, spatial schema, and database permissions.
Use the current ArcGIS Pro connection dialog, verify supported PostgreSQL and PostGIS versions, avoid outdated instructions to copy arbitrary DLLs into the ArcGIS Pro folder, configure pg_hba.conf and SSL deliberately, confirm supported spatial types and SRIDs, and grant only the privileges required by the workflow.
After the connection succeeds, validate a small table, inspect its spatial reference and geometry, test performance, and determine whether the project requires read-only analysis, registered enterprise-geodatabase editing, or ArcGIS Enterprise publishing.
References
[1] ArcGIS Pro: Spatial types in databases
[2] ArcGIS Pro: PostgreSQL database requirements