restrict_nonsystem_relation_kind

A GUC restricting access to specific relation kinds

restrict_nonsystem_relation_kind is a configuration parameter specifying one or more relation kinds to which access is restricted.

restrict_nonsystem_relation_kind was added in PostgreSQL 18 and backported to PostgreSQL 12.

默认

The default value for restrict_nonsystem_relation_kind is: '' (empty string).

用法

restrict_nonsystem_relation_kind is primarily intended to restrict access to non-system views and foreign tables when pg_dump is being executed.

Valid values are

  • view
  • foreign-table

Multiple values may be provided if separated by a comma.

按 PostgreSQL 版本详细信息

restrict_nonsystem_relation_kind (PostgreSQL 19)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 18)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 17)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 16)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 15)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 14)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 13)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

restrict_nonsystem_relation_kind (PostgreSQL 12)

设置
单位  
类别 客户端连接默认值 / 语句行为
简短描述 Prohibits access to non-system relations of specified kinds.
扩展描述  
上下文 user
变量类型 string
来源 默认
最小值  
最大值  
枚举值  
启动值
重置值
源文件  
源行  
需要重启 false

Documentation: restrict_nonsystem_relation_kind

变更历史

Note that restrict_nonsystem_relation_kind was backpatched to all versions between PostgreSQL 12 and PostgreSQL 17.

分类

备份, GUC 配置项

反馈

Submit any comments, suggestions or corrections for "restrict_nonsystem_relation_kind" here.