Name

postgis.enable_outdb_rasters — 一个布尔配置选项,用于启用对数据库外栅格波段的访问。

描述

一个布尔配置选项,用于启用对数据库外栅格波段的访问。 该选项可以在 PostgreSQL 的配置文件:postgresql.conf 中设置。 也可以通过连接或事务来设置。

postgis.enable_outdb_rasters 的初始值也可以通过将具有非零值的环境变量 POSTGIS_ENABLE_OUTDB_RASTERS 传递给启动 PostgreSQL 的进程来设置。

[Note]

即使 postgis.enable_outdb_rasters 为 True,GUC postgis.gdal_enabled_drivers 也会确定可访问的栅格格式。

[Note]

在标准 PostGIS 安装中,postgis.enable_outdb_rasters 设置为 False。

可用性:2.2.0

示例

Set and reset postgis.enable_outdb_rasters for the current session.

SET postgis.enable_outdb_rasters TO True;
SET postgis.enable_outdb_rasters = default;
SET postgis.enable_outdb_rasters = True;
SET postgis.enable_outdb_rasters = False;
                

Set the default for all new connections to a database.

ALTER DATABASE gisdb SET postgis.enable_outdb_rasters = true;

Set the default for the whole database cluster. This requires superuser access. Also note that database, session, and user settings override this.

This example writes the setting to postgres.auto.conf.

ALTER SYSTEM SET postgis.enable_outdb_rasters = true;

Reload the PostgreSQL configuration so the changed setting is applied.

SELECT pg_reload_conf();