postgres.git / summary / log / commit / refs
commit 7e5d06901fc98809f1f8c835d90682f93a545f6f
Author: Jacob Champion <jchampion@postgresql.org>
Date: Fri Nov 06 00:54:54 2026 +0000
First released in: 14.25, 15.20, 16.16, 17.12, 18.7, 19.0
doc: Improve output_plugin_libraries documentation
Describe the effects of removing the builtin plugins from
output_plugin_libraries. It may not be obvious to DBAs why they might
want to keep those in the allowlist, since it wasn't previously possible
to pick and choose plugins without modifying the Postgres installation
itself.
Reported-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAOYmi%2Bmt5bcV6B0DZR-t1tfpX8wjk8Aj%2BftEd%3DxXuH5qege2%2BQ%40mail.gmail.com
Backpatch-through: 14
doc/src/sgml/config.sgml | 41 ++++++++++++++++++++++++++++++++++++
doc/src/sgml/ref/pg_recvlogical.sgml | 2 +-
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml
index a7d2e9bbc8f..8a5998e5f9a 100644
--- a/doc/src/sgml/config.sgml
+++ b/doc/src/sgml/config.sgml
@@ -4148,6 +4148,8 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
restriction. The default is <literal>'pgoutput, test_decoding'</literal>,
which are the two logical output plugins included in the standard
<productname>PostgreSQL</productname> distribution.
+ (<xref linkend="guc-output-plugin-libraries-builtins"/> documents the
+ behavior of the system if they are removed from this list.)
</para>
<para>
The format is a comma-separated list of library names, where each name
@@ -4186,6 +4188,45 @@ HINT: If it is safe for all REPLICATION users to use this library as an output
</programlisting>
</para>
</note>
+
+ <table id="guc-output-plugin-libraries-builtins">
+ <title>Plugins Allowed by Default</title>
+ <tgroup cols="2">
+ <colspec colname="col1" colwidth="1*"/>
+ <colspec colname="col2" colwidth="2*"/>
+ <thead>
+ <row>
+ <entry>Plugin</entry>
+ <entry>Description</entry>
+ </row>
+ </thead>
+
+ <tbody>
+ <row>
+ <entry><link linkend="protocol-logical-replication">pgoutput</link></entry>
+ <entry>
+ Core plugin for logical replication. Removing <literal>pgoutput</literal>
+ from <literal>output_plugin_libraries</literal> will cause future
+ subscription connections, and maintenance of the replication slots
+ for subscriptions, to fail with an error. (Beware that existing
+ replication tools may not degrade gracefully if the server is
+ configured in this way.)
+ </entry>
+ </row>
+ <row>
+ <entry><xref linkend="test-decoding"/></entry>
+ <entry>
+ Decodes the WAL stream into a human-readable text representation.
+ <xref linkend="app-pgrecvlogical"/> uses this plugin by default, so
+ removing it from <literal>output_plugin_libraries</literal> will
+ prevent the use of that utility unless a replacement plugin is
+ installed and explicitly selected with
+ <link linkend="app-pgrecvlogical-option-plugin"><literal>--plugin</literal></link>.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
</listitem>
</varlistentry>
diff --git a/doc/src/sgml/ref/pg_recvlogical.sgml b/doc/src/sgml/ref/pg_recvlogical.sgml
index c395505f20f..0016aad45d7 100644
--- a/doc/src/sgml/ref/pg_recvlogical.sgml
+++ b/doc/src/sgml/ref/pg_recvlogical.sgml
@@ -231,7 +231,7 @@ PostgreSQL documentation
</varlistentry>
<varlistentry>
- <term><option>-P <replaceable>plugin</replaceable></option></term>
+ <term id="app-pgrecvlogical-option-plugin"><option>-P <replaceable>plugin</replaceable></option></term>
<term><option>--plugin=<replaceable>plugin</replaceable></option></term>
<listitem>
<para>
[parent: 0c8611c6e7e6]