pgd assess
==========

概要
----

``pgd assess`` コマンドは、EDB
Postgres分散クラスターへの移行に対するPostgresサーバーインスタンスの適合性を評価します。
BDR拡張機能がまだインストールされていない標準のPostgresインスタンスに対して実行するように設計されています。

コマンドは、評価するPostgresサーバーインスタンスに接続するDSNで実行する必要があります。
``--dsn`` オプションで渡すか、 ``PGD_CLI_DSN``
環境変数を設定します。いずれも提供しないとエラーが発生します。

このコマンドは、 PostgresインスタンスのEDB Postgres
Distributedとの互換性をチェックし、互換性レポートを生成します。チェック数は、ターゲットインスタンスで検出されたエディションによって異なります。標準のPostgresおよびPGD
Expandedインスタンスは11個のチェックを取得しますが、 PGD
Essentialインスタンスは7個のExpanded固有のチェックは省略されます。

構文
----

.. code:: plaintext

   pgd assess [OPTIONS]

オプション
----------

assetコマンドには、コマンド固有のオプションはありません。ただし、評価するPostgresサーバーインスタンスにDSNを接続する必要があります。これは、\ ``--dsn``
オプションの引数として、または\ ``PGD_CLI_DSN``
環境変数を設定して渡すことができます。

`Global Options <https://www.enterprisedb.com/docs/pgd/latest/reference/cli/command_ref/#global-options>`_  も参照してください。

例
--

.. code:: bash

   pgd assess
   __OUTPUT__
   Assessment                           | Result                     | Details
   - ------------------------------------+----------------------------+-----------------------------------------------------------
    Multiple Databases                  | Compatible                 | Found only one user database
    Materialized Views                  | Compatible                 | No materialized views found
    EPAS Queue Tables                   | Compatible                 | No EPAS Queue Tables found
    DDL Command Usage                   | Requires workload analysis | Cannot be checked automatically at this time
    Advisory Lock Usage                 | Potentially compatible     | No advisory lock commands found in pg_stat_statements
    Large Objects                       | Compatible                 | No large objects found
    Trigger/Reference Privileges        | Compatible                 | No triggers with incompatible privileges found
    Tables with Multiple Unique Indexes | Compatible                 | No tables with multiple unique indexes found
    LOCK TABLE Usage                    | Potentially compatible     | No LOCK TABLE usage found in pg_stat_statements
    LISTEN/NOTIFY Usage                 | Compatible                 | No LISTEN/NOTIFY usage found in pg_stat_statements
    Row-Level Lock Usage                | Potentially compatible     | No row-level locking commands found in pg_stat_statements

.. toctree::
  :maxdepth: 3

