バージョンごとのドキュメント一覧

31.10. 構成設定 #

<title>Configuration Settings</title>

Logical replication requires several configuration options to be set. Most options are relevant only on one side of the replication. However, <varname>max_replication_slots</varname> is used on both the publisher and the subscriber, but it has a different meaning for each. 《機械翻訳》論理レプリケーションでは、いくつかの構成オプションを設定する必要があります。 ほとんどのオプションは、レプリケーションの一方の側でのみ関連します。 ただし、max_replication_slotsは、パブリッシャとサブスクライバの両方で使用されますが、それぞれに異なる意味を持ちます。

31.10.1. Publishers #

<link linkend="guc-wal-level"><varname>wal_level</varname></link> must be set to <literal>logical</literal>. 《機械翻訳》wal_levellogicalに設定する必要があります。

<link linkend="guc-max-replication-slots"><varname>max_replication_slots</varname></link> must be set to at least the number of subscriptions expected to connect, plus some reserve for table synchronization. 《機械翻訳》max_replication_slotsは、接続する予定のサブスクリプション数と、テーブル同期用の予備の数を加えた数以上に設定する必要があります。

<link linkend="guc-max-wal-senders"><varname>max_wal_senders</varname></link> should be set to at least the same as <varname>max_replication_slots</varname>, plus the number of physical replicas that are connected at the same time. 《機械翻訳》max_wal_sendersは、少なくともmax_replication_slotsと同じ数に設定する必要があります。 また、同時に接続されている物理レプリカの数にも、同じ数を加える必要があります。

Logical replication walsender is also affected by <link linkend="guc-wal-sender-timeout"><varname>wal_sender_timeout</varname></link>. 《機械翻訳》論理レプリケーションのwalsenderもwal_sender_timeoutの影響を受けます。

31.10.2. Subscribers #

<link linkend="guc-max-replication-slots-subscriber"><varname>max_replication_slots</varname></link> must be set to at least the number of subscriptions that will be added to the subscriber, plus some reserve for table synchronization. 《機械翻訳》max_replication_slotsは、少なくともサブスクライバに追加される予約の数に、テーブル同期用の予約を加えた数以上に設定する必要があります。

<link linkend="guc-max-logical-replication-workers"><varname>max_logical_replication_workers</varname></link> must be set to at least the number of subscriptions (for leader apply workers), plus some reserve for the table synchronization workers and parallel apply workers. 《機械翻訳》max_logical_replication_workersは、少なくともサブスクリプション数(リーダー適用ワーカー用)に加えて、テーブル同期ワーカーとパラレル適用ワーカー用の予備を加えた数以上に設定する必要があります。

<link linkend="guc-max-worker-processes"><varname>max_worker_processes</varname></link> may need to be adjusted to accommodate for replication workers, at least (<link linkend="guc-max-logical-replication-workers"><varname>max_logical_replication_workers</varname></link> + <literal>1</literal>). Note, some extensions and parallel queries also take worker slots from <varname>max_worker_processes</varname>. 《機械翻訳》max_worker_processesは、少なくともレプリケーションワーカーに対応するように調整する必要があるかもしれません(max_logical_replication_workers + 1)。 なお、一部の拡張機能や並列クエリはmax_worker_processesからワーカースロットを取得します。

<link linkend="guc-max-sync-workers-per-subscription"><varname>max_sync_workers_per_subscription</varname></link> controls the amount of parallelism of the initial data copy during the subscription initialization or when new tables are added. 《機械翻訳》max_sync_workers_per_subscriptionは、サブスクリプション初期化時や新しいテーブルが追加されたときの初期データコピーの並列度を制御します。

<link linkend="guc-max-parallel-apply-workers-per-subscription"><varname>max_parallel_apply_workers_per_subscription</varname></link> controls the amount of parallelism for streaming of in-progress transactions with subscription parameter <literal>streaming = parallel</literal>. 《機械翻訳》max_parallel_apply_workers_per_subscriptionは、サブスクリプションパラメータstreaming = parallelを使用して、進行中のトランザクションのストリーミングに対する並列処理の量を制御します。

Logical replication workers are also affected by <link linkend="guc-wal-receiver-timeout"><varname>wal_receiver_timeout</varname></link>, <link linkend="guc-wal-receiver-status-interval"><varname>wal_receiver_status_interval</varname></link> and <link linkend="guc-wal-retrieve-retry-interval"><varname>wal_retrieve_retry_interval</varname></link>. 《機械翻訳》論理レプリケーション・ワーカーも、wal_receiver_timeoutwal_receiver_status_interval、およびwal_retrieve_retry_intervalによって影響を受けます。