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

29.13. Upgrade #

Migration of <glossterm linkend="glossary-logical-replication-cluster">logical replication clusters</glossterm> is possible only when all the members of the old logical replication clusters are version 17.0 or later. 《機械翻訳》論理レプリケーション群の移行は、旧論理レプリケーション群のメンバが全てバージョン17.0以降の場合のみ可能。

29.13.1. 《機械翻訳》パブリッシャーのアップグレードの準備 #

<title>Prepare for Publisher Upgrades</title>

<application>pg_upgrade</application> attempts to migrate logical slots. This helps avoid the need for manually defining the same logical slots on the new publisher. Migration of logical slots is only supported when the old cluster is version 17.0 or later. Logical slots on clusters before version 17.0 will silently be ignored. 《機械翻訳》pg_upgradeロジカルスロットを移行しようとします。 これにより、新しいロジカルで同じパブリッシャースロットを手動で定義する必要がなくなります。 ロジカルスロットの移行は、古いクラスタがバージョン17.0以降の場合にのみサポートされます。 クラスタ上のロジカルスロット前バージョン17.0は暗黙的に無視されます。

Before you start upgrading the publisher cluster, ensure that the subscription is temporarily disabled, by executing <link linkend="sql-altersubscription"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>. Re-enable the subscription after the upgrade. 《機械翻訳》前スタートアップグレード処理ALTER SUBSCRIPTION ... DISABLEを実行して、サブスクリプションが一時的に無効になっている保証パブリッシャークラスタ。 アップグレードの後にサブスクリプションを再度有効にします。

There are some prerequisites for <application>pg_upgrade</application> to be able to upgrade the logical slots. If these are not met an error will be reported. 《機械翻訳》pg_upgradeロジカル枠をアップグレードできるようにするにはいくつかの前提条件があります。 これらが満たされない場合、エラーが報告されます。

  • The new cluster must have <link linkend="guc-wal-level"><varname>wal_level</varname></link> as <literal>logical</literal>. 《マッチ度[68.032787]》wal_levellogicalに設定することが必要です。 《機械翻訳》新しいクラスタはwal_levellogicalとして持つ必要があります。

  • The new cluster must have <link linkend="guc-max-replication-slots"><varname>max_replication_slots</varname></link> configured to a value greater than or equal to the number of slots present in the old cluster. 《機械翻訳》新しいクラスタのmax_replication_slotsは、以上の値を古いクラスタに存在するスロットの数に設定する必要があります。

  • The output plugins referenced by the slots on the old cluster must be installed in the new PostgreSQL executable directory. 《機械翻訳》古いクラスタのスロットで参照される出力プラグインは、新しいPostgreSQLの実行ファイル格納ディレクトリにインストールする必要があります。

  • The old cluster has replicated all the transactions and logical decoding messages to subscribers. 《機械翻訳》古いクラスタは、すべてのトランザクションとロジカルデコーディングメッセージをサブスクライバーに複製します。

  • All slots on the old cluster must be usable, i.e., there are no slots whose <link linkend="view-pg-replication-slots">pg_replication_slots</link>.<structfield>conflicting</structfield> is not <literal>true</literal>. 《機械翻訳》古いクラスタのスロットは全て使用可能でなければなりません。 つまり、pg_replication_slots.conflictingtrueではないスロットは存在しません。

  • The new cluster must not have permanent logical slots, i.e., there must be no slots where <link linkend="view-pg-replication-slots">pg_replication_slots</link>.<structfield>temporary</structfield> is <literal>false</literal>. 《機械翻訳》新しいクラスタは永続的なロジカルスロットを持つことはできません。 つまり、pg_replication_slots.一時的falseであるようなスロットがあってはなりません。

29.13.2. 《機械翻訳》サブスクライバーのアップグレードの準備 #

<title>Prepare for Subscriber Upgrades</title>

Setup the <link linkend="logical-replication-config-subscriber"> subscriber configurations</link> in the new subscriber. <application>pg_upgrade</application> attempts to migrate subscription dependencies which includes the subscription's table information present in <link linkend="catalog-pg-subscription-rel">pg_subscription_rel</link> system catalog and also the subscription's replication origin. This allows logical replication on the new subscriber to continue from where the old subscriber was up to. Migration of subscription dependencies is only supported when the old cluster is version 17.0 or later. Subscription dependencies on clusters before version 17.0 will silently be ignored. 《機械翻訳》新しいサブスクライバーのサブスクライバーの設定をセットアップします。 pg_upgradepg_subscription_relシステムカタログとサブスクリプションの複製起点に存在するサブスクリプションのテーブル情報を含むサブスクリプションの依存性を移行しようとします。 これにより、新しいサブスクライバーの論理レプリケーションは古いサブスクライバーがあった場所から継続することができます。 サブスクリプションの移行の依存性は古いクラスタがバージョン17.0以降の場合にのみサポートされます。 前バージョン17.0のクラスタ上のサブスクリプションの依存性は黙って無視されます。

There are some prerequisites for <application>pg_upgrade</application> to be able to upgrade the subscriptions. If these are not met an error will be reported. 《機械翻訳》pg_upgrade定期購読をアップグレードできるようにするにはいくつかの前提条件があります。 これらが満たされない場合、エラーが報告されます。

  • All the subscription tables in the old subscriber should be in state <literal>i</literal> (initialize) or <literal>r</literal> (ready). This can be verified by checking <link linkend="catalog-pg-subscription-rel">pg_subscription_rel</link>.<structfield>srsubstate</structfield>. 《機械翻訳》古いサブスクリプション内の全てのサブスクライバーテーブルはi initializeもしくはr readyの状態である必要があります。 これはpg_subscription_relをチェックすることで検証することができます。 srsubstate.

  • The replication origin entry corresponding to each of the subscriptions should exist in the old cluster. This can be found by checking <link linkend="catalog-pg-subscription">pg_subscription</link> and <link linkend="catalog-pg-replication-origin">pg_replication_origin</link> system tables. 《機械翻訳》各サブスクリプションに対応する複製起点エントリは、古いクラスタに存在する必要があります。 これは、pg_subscriptionpg_replication_originシステムテーブルを調べることで見つけることができます。

  • The new cluster must have <link linkend="guc-max-active-replication-origins"><varname>max_active_replication_origins</varname></link> configured to a value greater than or equal to the number of subscriptions present in the old cluster. 《機械翻訳》新しいクラスタは、古い以上に存在する加入数に対するクラスタの値に設定されている必要がありますmax_active_replication_origins

29.13.3. 《機械翻訳》論理レプリケーションクラスタのアップグレード #

<title>Upgrading Logical Replication Clusters</title>

While upgrading a subscriber, write operations can be performed in the publisher. These changes will be replicated to the subscriber once the subscriber upgrade is completed. 《機械翻訳》アップグレード処理がサブスクライバーである間、書き込み操作はパブリッシャーで実行できます。 これらの変更は、サブスクライバーアップグレードが完了するとサブスクライバーに複製されます。

注記

The logical replication restrictions apply to logical replication cluster upgrades also. See <xref linkend="logical-replication-restrictions"/> for details. 《機械翻訳》論理レプリケーションの制限は、論理レプリケーションクラスタのアップグレードにも適用されます。 詳細は29.8を参照してください。

The prerequisites of publisher upgrade apply to logical replication cluster upgrades also. See <xref linkend="prepare-publisher-upgrades"/> for details. 《機械翻訳》パブリッシャーアップグレードの前提条件は、論理レプリケーションクラスタのアップグレードにも適用されます。 詳細は29.13.1を参照してください。

The prerequisites of subscriber upgrade apply to logical replication cluster upgrades also. See <xref linkend="prepare-subscriber-upgrades"/> for details. 《機械翻訳》サブスクライバーアップグレードの前提条件は、論理レプリケーションクラスタのアップグレードにも適用されます。 詳細は29.13.2を参照してください。

警告

Upgrading logical replication cluster requires multiple steps to be performed on various nodes. Because not all operations are transactional, the user is advised to take backups as described in <xref linkend="backup-base-backup"/>. 《機械翻訳》アップグレード処理論理レプリケーションクラスタでは、様々なノードでマルチプル手順を実行する必要があります。 すべての操作がトランザクションではないため、ユーザは25.3.2の説明に従ってバックアップを作成することをお薦めします。

The steps to upgrade the following logical replication clusters are detailed below: 《機械翻訳》次の論理レプリケーションクラスタをアップグレードする手順は以下に詳述されています。

  • Follow the steps specified in <xref linkend="steps-two-node-logical-replication-cluster"/> to upgrade a two-node logical replication cluster. 《機械翻訳》29.13.3.1で指定された手順に従って、アップグレードa 2-ノード論理レプリケーションクラスタまで行きます。

  • Follow the steps specified in <xref linkend="steps-cascaded-logical-replication-cluster"/> to upgrade a cascaded logical replication cluster. 《機械翻訳》29.13.3.2で指定されている手順に従って、カスケード論理レプリケーションクラスタをアップグレードします。

  • Follow the steps specified in <xref linkend="steps-two-node-circular-logical-replication-cluster"/> to upgrade a two-node circular logical replication cluster. 《機械翻訳》29.13.3.3で指定されている手順に従って、2ノード環状論理レプリケーションクラスタをアップグレードまで行きます。

29.13.3.1. 《機械翻訳》2ノード論理レプリケーションクラスタをアップグレードする手順 #

<title>Steps to Upgrade a Two-node Logical Replication Cluster</title>

Let's say publisher is in <literal>node1</literal> and subscriber is in <literal>node2</literal>. The subscriber <literal>node2</literal> has a subscription <literal>sub1_node1_node2</literal> which is subscribing the changes from <literal>node1</literal>. 《機械翻訳》パブリッシャーがnode1にあり、サブスクライバーがnode2にあるとします。 サブスクライバーにはnode1からの変更をサブスクライブしているサブスクリプションがあります。 node2 sub1_node1_node2

  1. Disable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-disable"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>, e.g.: 《機械翻訳》node1からの変更をサブスクライブしているnode2上のすべてのサブスクリプションを無効にしますALTER SUBSCRIPTION ... DISABLEを使用、例:。

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 DISABLE;
    

  2. Stop the publisher server in <literal>node1</literal>, e.g.: 《機械翻訳》パブリッシャーサーバを停止しますnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1 stop
    

  3. Initialize <literal>data1_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data1_upgradedバージョンを初期化します。

  4. Upgrade the publisher <literal>node1</literal>'s server to the required newer version, e.g.: 《機械翻訳》パブリッシャーのアップグレードnode1例えば、必要とされるより新しいサーバへのバージョン。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data1"
            --new-datadir "/opt/PostgreSQL/postgres/18/data1_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  5. Start the upgraded publisher server in <literal>node1</literal>, e.g.: 《機械翻訳》スタートのアップグレードされたパブリッシャーサーバnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1_upgraded start -l logfile
    

  6. Stop the subscriber server in <literal>node2</literal>, e.g.: 《機械翻訳》サブスクライバーサーバを停止しますnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2 stop
    

  7. Initialize <literal>data2_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data2_upgradedバージョンを初期化します。

  8. Upgrade the subscriber <literal>node2</literal>'s server to the required new version, e.g.: 《機械翻訳》サブスクライバーをアップグレードしてくださいnode2例えば、必要な新しいバージョンまでのサーバ。

    pg_upgrade
           --old-datadir "/opt/PostgreSQL/postgres/17/data2"
           --new-datadir "/opt/PostgreSQL/postgres/18/data2_upgraded"
           --old-bindir "/opt/PostgreSQL/postgres/17/bin"
           --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  9. Start the upgraded subscriber server in <literal>node2</literal>, e.g.: 《機械翻訳》スタートのアップグレードされたサブスクライバーサーバnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2_upgraded start -l logfile
    

  10. On <literal>node2</literal>, create any tables that were created in the upgraded publisher <literal>node1</literal> server between <xref linkend="two-node-cluster-disable-subscriptions-node2"/> and now, e.g.: 《機械翻訳》node2で、アップグレードされたパブリッシャーnode1ステップ 1と現在の間のサーバで作成されたテーブルを作成します。 例:。

    /* node2 # */ CREATE TABLE distributors (did integer PRIMARY KEY, name varchar(40));
    

  11. Enable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-enable"><command>ALTER SUBSCRIPTION ... ENABLE</command></link>, e.g.: 《機械翻訳》から変更をサブスクライブしている上のすべてのサブスクリプションを有効にしますnode1ALTER SUBSCRIPTION ... ENABLEを使用、例:。 node2

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 ENABLE;
    

  12. Refresh the <literal>node2</literal> subscription's publications using <link linkend="sql-altersubscription-params-refresh-publication"><command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command></link>, e.g.: 《機械翻訳》リフレッシュnode2ALTER SUBSCRIPTION ... REFRESH PUBLICATIONを使用したサブスクリプションの出版物、例えば:。

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 REFRESH PUBLICATION;
    

注記

In the steps described above, the publisher is upgraded first, followed by the subscriber. Alternatively, the user can use similar steps to upgrade the subscriber first, followed by the publisher. 《機械翻訳》前述の手順では、パブリッシャーが最初にアップグレードされ、次にサブスクライバーがアップグレードされます。 または、ユーザも同様の手順を使用して、サブスクライバーが最初にアップグレードされ、次にパブリッシャーがアップグレードされます。

29.13.3.2. 《機械翻訳》カスケード論理レプリケーションクラスタをアップグレードする手順 #

<title>Steps to Upgrade a Cascaded Logical Replication Cluster</title>

Let's say we have a cascaded logical replication setup <literal>node1</literal>-><literal>node2</literal>-><literal>node3</literal>. Here <literal>node2</literal> is subscribing the changes from <literal>node1</literal> and <literal>node3</literal> is subscribing the changes from <literal>node2</literal>. The <literal>node2</literal> has a subscription <literal>sub1_node1_node2</literal> which is subscribing the changes from <literal>node1</literal>. The <literal>node3</literal> has a subscription <literal>sub1_node2_node3</literal> which is subscribing the changes from <literal>node2</literal>. 《機械翻訳》カスケードされた論理レプリケーションセットアップnode1->node2->node3があるとします。 ここで、node2node1からの変更をサブスクライブしており、node3node2からの変更をサブスクライブしています。 node2にはnode1からの変更をサブスクライブしているsub1_node1_node2サブスクリプションがあります。 node3にはnode2からの変更をサブスクライブしているsub1_node2_node3サブスクリプションがあります。 node3

  1. Disable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-disable"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>, e.g.: 《機械翻訳》からの変更をサブスクライブしている上のすべてのサブスクリプションを無効にしますnode1ALTER SUBSCRIPTION ... DISABLEを使用、例:。 node2

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 DISABLE;
    

  2. Stop the server in <literal>node1</literal>, e.g.: 《機械翻訳》サーバを停止しますnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1 stop
    

  3. Initialize <literal>data1_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data1_upgradedバージョンを初期化します。

  4. Upgrade the <literal>node1</literal>'s server to the required newer version, e.g.: 《機械翻訳》例えば、node1のサーバを、必要とされるより新しいバージョンまでアップグレードしてください。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data1"
            --new-datadir "/opt/PostgreSQL/postgres/18/data1_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  5. Start the upgraded server in <literal>node1</literal>, e.g.: 《機械翻訳》スタートアップグレードされたサーバnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1_upgraded start -l logfile
    

  6. Disable all the subscriptions on <literal>node3</literal> that are subscribing the changes from <literal>node2</literal> by using <link linkend="sql-altersubscription-params-disable"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>, e.g.: 《機械翻訳》からの変更をサブスクライブしている上のすべてのサブスクリプションを無効にしますnode2ALTER SUBSCRIPTION ... DISABLEを使用、例:。 node3

    /* node3 # */ ALTER SUBSCRIPTION sub1_node2_node3 DISABLE;
    

  7. Stop the server in <literal>node2</literal>, e.g.: 《機械翻訳》サーバを停止しますnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2 stop
    

  8. Initialize <literal>data2_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data2_upgradedバージョンを初期化します。

  9. Upgrade the <literal>node2</literal>'s server to the required new version, e.g.: 《機械翻訳》例えば、node2のサーバから必要な新しいバージョンまでアップグレードします。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data2"
            --new-datadir "/opt/PostgreSQL/postgres/18/data2_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  10. Start the upgraded server in <literal>node2</literal>, e.g.: 《機械翻訳》スタートアップグレードされたサーバnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2_upgraded start -l logfile
    

  11. On <literal>node2</literal>, create any tables that were created in the upgraded publisher <literal>node1</literal> server between <xref linkend="cascaded-cluster-disable-sub-node1-node2"/> and now, e.g.: 《機械翻訳》node2で、アップグレードされたパブリッシャーnode1ステップ 1と現在の間のサーバで作成されたテーブルを作成します。 例:。

    /* node2 # */ CREATE TABLE distributors (did integer PRIMARY KEY, name varchar(40));
    

  12. Enable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-enable"><command>ALTER SUBSCRIPTION ... ENABLE</command></link>, e.g.: 《機械翻訳》から変更をサブスクライブしている上のすべてのサブスクリプションを有効にしますnode1ALTER SUBSCRIPTION ... ENABLEを使用、例:。 node2

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 ENABLE;
    

  13. Refresh the <literal>node2</literal> subscription's publications using <link linkend="sql-altersubscription-params-refresh-publication"><command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command></link>, e.g.: 《機械翻訳》リフレッシュnode2ALTER SUBSCRIPTION ... REFRESH PUBLICATIONを使用したサブスクリプションの出版物、例えば:。

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 REFRESH PUBLICATION;
    

  14. Stop the server in <literal>node3</literal>, e.g.: 《機械翻訳》サーバを停止しますnode3例:。

    pg_ctl -D /opt/PostgreSQL/data3 stop
    

  15. Initialize <literal>data3_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data3_upgradedバージョンを初期化します。

  16. Upgrade the <literal>node3</literal>'s server to the required new version, e.g.: 《機械翻訳》例えば、node3のサーバから必要な新しいバージョンまでアップグレードします。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data3"
            --new-datadir "/opt/PostgreSQL/postgres/18/data3_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  17. Start the upgraded server in <literal>node3</literal>, e.g.: 《機械翻訳》スタートアップグレードされたサーバnode3例:。

    pg_ctl -D /opt/PostgreSQL/data3_upgraded start -l logfile
    

  18. On <literal>node3</literal>, create any tables that were created in the upgraded <literal>node2</literal> between <xref linkend="cascaded-cluster-disable-sub-node2-node3"/> and now, e.g.: 《機械翻訳》node3,上で、アップグレードされたnode2ステップ 6と現在の間の、例えば以下のようなで作成されたテーブルを作成します。

    /* node3 # */ CREATE TABLE distributors (did integer PRIMARY KEY, name varchar(40));
    

  19. Enable all the subscriptions on <literal>node3</literal> that are subscribing the changes from <literal>node2</literal> by using <link linkend="sql-altersubscription-params-enable"><command>ALTER SUBSCRIPTION ... ENABLE</command></link>, e.g.: 《機械翻訳》node2から変更をサブスクライブしているnode3上のすべてのサブスクリプションを有効にしますALTER SUBSCRIPTION ... ENABLEを使用、例:。

    /* node3 # */ ALTER SUBSCRIPTION sub1_node2_node3 ENABLE;
    

  20. Refresh the <literal>node3</literal> subscription's publications using <link linkend="sql-altersubscription-params-refresh-publication"><command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command></link>, e.g.: 《機械翻訳》リフレッシュnode3ALTER SUBSCRIPTION ... REFRESH PUBLICATIONを使用したサブスクリプションの出版物、例えば:。

    /* node3 # */ ALTER SUBSCRIPTION sub1_node2_node3 REFRESH PUBLICATION;
    

29.13.3.3. 《機械翻訳》2ノード環状論理レプリケーションクラスタをアップグレードする手順 #

<title>Steps to Upgrade a Two-node Circular Logical Replication Cluster</title>

Let's say we have a circular logical replication setup <literal>node1</literal>-><literal>node2</literal> and <literal>node2</literal>-><literal>node1</literal>. Here <literal>node2</literal> is subscribing the changes from <literal>node1</literal> and <literal>node1</literal> is subscribing the changes from <literal>node2</literal>. The <literal>node1</literal> has a subscription <literal>sub1_node2_node1</literal> which is subscribing the changes from <literal>node2</literal>. The <literal>node2</literal> has a subscription <literal>sub1_node1_node2</literal> which is subscribing the changes from <literal>node1</literal>. 《機械翻訳》円形の論理レプリケーションセットアップnode1->node2およびnode2->node1ここでnode2node1からの変更をサブスクライブしており、node1node2からの変更をサブスクライブしています。 node1node2からの変更をサブスクライブしているサブスクリプションsub1_node2_node1を持っています。 node2node1からの変更をサブスクライブしているサブスクリプションsub1_node1_node2を持っています。

  1. Disable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-disable"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>, e.g.: 《機械翻訳》からの変更をサブスクライブしている上のすべてのサブスクリプションを無効にしますnode1ALTER SUBSCRIPTION ... DISABLEを使用、例:。 node2

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 DISABLE;
    

  2. Stop the server in <literal>node1</literal>, e.g.: 《機械翻訳》サーバを停止しますnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1 stop
    

  3. Initialize <literal>data1_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data1_upgradedバージョンを初期化します。

  4. Upgrade the <literal>node1</literal>'s server to the required newer version, e.g.: 《機械翻訳》例えば、node1のサーバを、必要とされるより新しいバージョンまでアップグレードしてください。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data1"
            --new-datadir "/opt/PostgreSQL/postgres/18/data1_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  5. Start the upgraded server in <literal>node1</literal>, e.g.: 《機械翻訳》スタートアップグレードされたサーバnode1例:。

    pg_ctl -D /opt/PostgreSQL/data1_upgraded start -l logfile
    

  6. Enable all the subscriptions on <literal>node2</literal> that are subscribing the changes from <literal>node1</literal> by using <link linkend="sql-altersubscription-params-enable"><command>ALTER SUBSCRIPTION ... ENABLE</command></link>, e.g.: 《機械翻訳》node1から変更をサブスクライブしているnode2上のすべてのサブスクリプションを有効にしますALTER SUBSCRIPTION ... ENABLEを使用、例:。

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 ENABLE;
    

  7. On <literal>node1</literal>, create any tables that were created in <literal>node2</literal> between <xref linkend="circular-cluster-disable-sub-node2"/> and now, e.g.: 《機械翻訳》node1,上で、node2ステップ 1と現在の間、例:で作成されたテーブルを作成します。

    /* node1 # */ CREATE TABLE distributors (did integer PRIMARY KEY, name varchar(40));
    

  8. Refresh the <literal>node1</literal> subscription's publications to copy initial table data from <literal>node2</literal> using <link linkend="sql-altersubscription-params-refresh-publication"><command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command></link>, e.g.: 《機械翻訳》リフレッシュnode1コピーの最初のテーブルデータへのサブスクリプションの出版物node2ALTER SUBSCRIPTION ... REFRESH PUBLICATIONを使用、例えば:。

    /* node1 # */ ALTER SUBSCRIPTION sub1_node2_node1 REFRESH PUBLICATION;
    

  9. Disable all the subscriptions on <literal>node1</literal> that are subscribing the changes from <literal>node2</literal> by using <link linkend="sql-altersubscription-params-disable"><command>ALTER SUBSCRIPTION ... DISABLE</command></link>, e.g.: 《機械翻訳》node2からの変更をサブスクライブしているnode1上のすべてのサブスクリプションを無効にしますALTER SUBSCRIPTION ... DISABLEを使用、例:。

    /* node1 # */ ALTER SUBSCRIPTION sub1_node2_node1 DISABLE;
    

  10. Stop the server in <literal>node2</literal>, e.g.: 《機械翻訳》サーバを停止しますnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2 stop
    

  11. Initialize <literal>data2_upgraded</literal> instance by using the required newer version. 《機械翻訳》必要な新しいインスタンスを使用して、data2_upgradedバージョンを初期化します。

  12. Upgrade the <literal>node2</literal>'s server to the required new version, e.g.: 《機械翻訳》例えば、node2のサーバから必要な新しいバージョンまでアップグレードします。

    pg_upgrade
            --old-datadir "/opt/PostgreSQL/postgres/17/data2"
            --new-datadir "/opt/PostgreSQL/postgres/18/data2_upgraded"
            --old-bindir "/opt/PostgreSQL/postgres/17/bin"
            --new-bindir "/opt/PostgreSQL/postgres/18/bin"
    

  13. Start the upgraded server in <literal>node2</literal>, e.g.: 《機械翻訳》スタートアップグレードされたサーバnode2例:。

    pg_ctl -D /opt/PostgreSQL/data2_upgraded start -l logfile
    

  14. Enable all the subscriptions on <literal>node1</literal> that are subscribing the changes from <literal>node2</literal> by using <link linkend="sql-altersubscription-params-enable"><command>ALTER SUBSCRIPTION ... ENABLE</command></link>, e.g.: 《機械翻訳》node2から変更をサブスクライブしているnode1上のすべてのサブスクリプションを有効にしますALTER SUBSCRIPTION ... ENABLEを使用、例:。

    /* node1 # */ ALTER SUBSCRIPTION sub1_node2_node1 ENABLE;
    

  15. On <literal>node2</literal>, create any tables that were created in the upgraded <literal>node1</literal> between <xref linkend="circular-cluster-disable-sub-node1"/> and now, e.g.: 《機械翻訳》node2,上で、アップグレードされたnode1ステップ 9と現在の間の、例えば以下のようなで作成されたテーブルを作成します。

    /* node2 # */ CREATE TABLE distributors (did integer PRIMARY KEY, name varchar(40));
    

  16. Refresh the <literal>node2</literal> subscription's publications to copy initial table data from <literal>node1</literal> using <link linkend="sql-altersubscription-params-refresh-publication"><command>ALTER SUBSCRIPTION ... REFRESH PUBLICATION</command></link>, e.g.: 《機械翻訳》リフレッシュnode2コピーの最初のテーブルデータへのサブスクリプションの出版物node1ALTER SUBSCRIPTION ... REFRESH PUBLICATIONを使用、例えば:。

    /* node2 # */ ALTER SUBSCRIPTION sub1_node1_node2 REFRESH PUBLICATION;