{"Entry":{"collection":"func","key":"pg-copy-logical-replication-slot","name":"pg_copy_logical_replication_slot","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"11","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"12"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"16"},{"descriptions_changed":true,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"17"},{"descriptions_changed":true,"doc_overhaul":false,"from":"18","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"19"}],"content_hash":"d7fe3ecb39c6668610e7de1b68a565a42c8ca293be1104c7bd37b39d120f5602","derived_content_hash":"dcef6f388e4a749c3b4d06e31a94512ca3ea2e0fa894d2164d0dde06d41fa461","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:a6c8abd21da4b42226db60ffe34f658bca0f23957cde5e09bf41efb60d614940","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"12","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.467149+08:00","last_version":"20","name":"pg_copy_logical_replication_slot","name_key":"pg_copy_logical_replication_slot","position":29023,"present_in":["12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"b7bd9cda","receipt_sha256":"6ea020581a48dc829160ca399ad9a5036594f238970017bf105f18092e73d71c","repair":"wiki-repair-20261023"},"signature":"pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name ]] ) → record ( slot_name name, lsn pg_lsn )","signature_count":1,"slug":"pg-copy-logical-replication-slot","source_rev":"wiki-repair-20261023:a6c8abd21da4b42226db60ffe34f658bca0f23957cde5e09bf41efb60d614940","summary":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-copy-logical-replication-slot","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-copy-logical-replication-slot","SourceRevision":"wiki-repair-20261023:a6c8abd21da4b42226db60ffe34f658bca0f23957cde5e09bf41efb60d614940","Facts":{"description":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_html":"Copies an existing logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_zh":"复制一个名为 src_slot_name 的现有逻辑复制槽到一个名为 dst_slot_name 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。temporary 和 plugin 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 failover 选项不会被复制，而是默认设为 false。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","description_zh_html":"复制一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e 的现有逻辑复制槽到一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。\u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e 和 \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e 选项不会被复制，而是默认设为 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","doc":{"anchor":"FUNCTIONS-REPLICATION-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"admin","group_label":"系统管理函数","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_html":"Copies an existing logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_zh":"复制一个名为 src_slot_name 的现有逻辑复制槽到一个名为 dst_slot_name 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。temporary 和 plugin 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 failover 选项不会被复制，而是默认设为 false。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","description_zh_html":"复制一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e 的现有逻辑复制槽到一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。\u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e 和 \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e 选项不会被复制，而是默认设为 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_copy_logical_replication_slot\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e\u003c/span\u003e]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003erecord\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eslot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elsn\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e )","returns":"record","text":"pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name]] ) → record ( slot_name name, lsn pg_lsn )","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-admin.html","sha256":"b4fab9daceb7883fd75b32b6eb5398f2bbbfbbed5c83d1b2bf99cc8d842cdaf7"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-REPLICATION-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-copy-logical-replication-slot","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_copy_logical_replication_slot","Summary":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","BodyHTML":"Copies an existing logical replication slot named \u003cem\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","SourceRevision":"wiki-repair-20261023:a6c8abd21da4b42226db60ffe34f658bca0f23957cde5e09bf41efb60d614940","ContentHash":"0512c7924ff142dbf555c793170f80a152d44d94674315e768e9c18f9d4742b0","Payload":{"description":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_html":"Copies an existing logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","signatures":[{"description":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_html":"Copies an existing logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_zh":"复制一个名为 src_slot_name 的现有逻辑复制槽到一个名为 dst_slot_name 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。temporary 和 plugin 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 failover 选项不会被复制，而是默认设为 false。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","description_zh_html":"复制一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e 的现有逻辑复制槽到一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。\u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e 和 \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e 选项不会被复制，而是默认设为 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_copy_logical_replication_slot\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e\u003c/span\u003e]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003erecord\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eslot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elsn\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e )","returns":"record","text":"pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name]] ) → record ( slot_name name, lsn pg_lsn )","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"a2fe75b54b5e2f3fbe0719b0ed9f330131382f26e43f266c5795de0497ae9921","Text":"pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name]] ) → record ( slot_name name, lsn pg_lsn )","Returns":"record","Payload":{"description":"Copies an existing logical replication slot named src_slot_name to a logical replication slot named dst_slot_name, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both temporary and plugin are optional; if they are omitted, the values of the source slot are used. The failover option of the source logical slot is not copied and is set to false by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_html":"Copies an existing logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e to a logical replication slot named \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e, optionally changing the output plugin and persistence. The copied logical slot starts from the same LSN as the source logical slot. Both \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e and \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e are optional; if they are omitted, the values of the source slot are used. The \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e option of the source logical slot is not copied and is set to \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e by default. This is to avoid the risk of being unable to continue logical replication after failover to standby where the slot is being synchronized. Copy of an invalidated slot is not allowed.","description_zh":"复制一个名为 src_slot_name 的现有逻辑复制槽到一个名为 dst_slot_name 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。temporary 和 plugin 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 failover 选项不会被复制，而是默认设为 false。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","description_zh_html":"复制一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e 的现有逻辑复制槽到一个名为 \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e 的逻辑复制槽，可选地更改输出插件和持久性。被复制的逻辑槽从与源逻辑槽相同的 LSN 开始。\u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e 和 \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e 都是可选的。如果它们被省略了，使用与源逻辑槽相同的值。源逻辑槽的 \u003ccode class=\"literal\"\u003efailover\u003c/code\u003e 选项不会被复制，而是默认设为 \u003ccode class=\"literal\"\u003efalse\u003c/code\u003e。这是为了避免故障切换到正在同步该槽的备库后无法继续逻辑复制的风险。不能复制已失效的槽。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_copy_logical_replication_slot\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003esrc_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003edst_slot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003etemporary\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003eplugin\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e\u003c/span\u003e]\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003erecord\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eslot_name\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ename\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003elsn\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_lsn\u003c/code\u003e )","returns":"record","text":"pg_copy_logical_replication_slot ( src_slot_name name, dst_slot_name name [, temporary boolean [, plugin name]] ) → record ( slot_name name, lsn pg_lsn )","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
