output_plugin_libraries
英文手册覆盖始于 PostgreSQL 7.4. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- boot val
- pgoutput, test_decoding
- category
- Replication / Sending Servers
- context
- superuser
- documented
- true
- enumvals
- 未知
- extra desc
- Users with REPLICATION privileges may only use plugins in this list when creating logical replication slots.
- lang
- en
- max val
- 未知
- metadata version
- 18
- min val
- 未知
- name
- output_plugin_libraries
- short desc
- Lists libraries that may be named as logical decoding output plugins.
- source
- pg-settings-source-snapshot
- unit
- 未知
- vartype
- string
版本定义 PG 18
列出安装在dynamic_library_path所指定位置中、同时也受信任、可供复制客户端用作逻辑输出插件的库。任何针对其他库的逻辑解码或复制请求都将被拒绝。所有用户都受此限制。默认值为 'pgoutput, test_decoding',它们是标准 PostgreSQL 发行版中包含的两个逻辑输出插件。
其格式为以逗号分隔的库名称列表,每个名称的解释方式与 LOAD命令相同(但逻辑解码客户端指定的插件名称必须与列表中的一个条目完全匹配,大小写或路径结构不得有变化)。条目之间的空白会被忽略;如果库名称中需要包含空白或逗号,请用双引号将其括起。
服务器管理员有责任确保,加载添加到此列表中的库时,不会无意中向非超级用户授予额外权限。
注意
从没有 output_plugin_libraries 参数的版本更新服务器时,以下查询可帮助构造所有持久逻辑复制槽所需的插件列表:
SELECT DISTINCT plugin FROM pg_replication_slots WHERE plugin IS NOT NULL;
调整 output_plugin_libraries 之前,请仔细审查该列表以确保安全。
上述查询只能显示过去某个时刻已成功添加到复制槽的插件。新近被拒绝的请求将以类似以下消息出现在日志中:
ERROR: library "..." may not be used as an output plugin DETAIL: The configuration parameter "output_plugin_libraries" (currently 'pgoutput, test_decoding') does not name this library as a trusted output plugin. HINT: If it is safe for all REPLICATION users to use this library as an output plugin, add it to "output_plugin_libraries" and reload the server configuration.
比较版本
来源引用
定义来源
center · PostgreSQL 18 · english-manuals:28cee2fac0b626e9429665f078b824188537ef4462f8c405295cb15621848f04
正文语言: zh-Hans · 2026-09-11@29c86d9