PROJ file access and configuration — Administrator controls for PROJ data files used by transformations.
Coordinate transformations use PROJ resources such as proj.db, grid shift files, and init files. Install the required resources in the PROJ data directory bundled with the PostGIS build. Configure that directory with --with-projdatadir; when omitted, configure uses PROJ's pkg-config data directory or share/proj below --with-projdir. Windows packages use their installed PROJ bundle under PostgreSQL's share/contrib directory when no explicit directory was configured.
Reading files outside the installed PROJ data directory requires superuser privileges or the privileges of pg_read_server_files, as with PostgreSQL COPY FROM a server file. This applies to free-form CRS text and transformation pipelines supplied to SQL. Other roles can use bundled PROJ resources through SRIDs in spatial_ref_sys.
|
|
|
With PROJ 9.6 and later, the file restriction also applies when a role uses an SRID. A role without superuser or |
PROJ network access follows the server's PROJ configuration. The restricted context disables PROJ's network grid cache. See PROJ network configuration. The environment variable PROJ_AUX_DB is not supported for restricted access. PostGIS_Full_Version reports when PROJ before 9.6 prevents enforcement of the file restriction.