Cookie の設定を選択する

当社は、当社のサイトおよびサービスを提供するために必要な必須 Cookie および類似のツールを使用しています。当社は、パフォーマンス Cookie を使用して匿名の統計情報を収集することで、お客様が当社のサイトをどのように利用しているかを把握し、改善に役立てています。必須 Cookie は無効化できませんが、[カスタマイズ] または [拒否] をクリックしてパフォーマンス Cookie を拒否することはできます。

お客様が同意した場合、AWS および承認された第三者は、Cookie を使用して便利なサイト機能を提供したり、お客様の選択を記憶したり、関連する広告を含む関連コンテンツを表示したりします。すべての必須ではない Cookie を受け入れるか拒否するには、[受け入れる] または [拒否] をクリックしてください。より詳細な選択を行うには、[カスタマイズ] をクリックしてください。

Understanding data definition language (DDL) in Aurora DSQL

フォーカスモード
Understanding data definition language (DDL) in Aurora DSQL - Amazon Aurora DSQL
このページはお客様の言語に翻訳されていません。 翻訳のリクエスト

Amazon Aurora DSQL is provided as a Preview service. To learn more, see Betas and Previews in the AWS Service Terms.

Amazon Aurora DSQL is provided as a Preview service. To learn more, see Betas and Previews in the AWS Service Terms.

Aurora DSQL features a Multi-AZ distributed and shared-nothing database layer built on top of multi-tenant compute and storage fleets. Because there isn't a single primary database node or leader, the database catalog is distributed, and schema changes are managed as distributed transactions. As such, there are a few ways in which DDL behaves differently in Aurora DSQL than PostgreSQL.

  • Aurora DSQL throws a concurrency control violation error if you run one transaction while another transaction updates a resource. Consider the following example.

    • Create table foobar in session 1.

    • After Aurora DSQL creates the table foobar, you run the statement SELECT * from foobar in session 2. Aurora DSQL returns with the error SQL Error [40001]: ERROR: schema has been updated by another transaction, please retry: (OC001).

      Note

      During preview, there is a known issue that increases the scope of this concurrency control error to all objects within the same schema/namespace.

  • Transactions in Aurora DSQL can contain only one DDL statement and can't have both DDL and DML statements. For example, you can't create a table and insert data into the same table within the same transaction.

    For example, Aurora DSQL supports the following statements.

    BEGIN; CREATE TABLE FOO (ID_col integer); COMMIT;
    BEGIN; INSERT into FOO VALUES (1); COMMIT;

    Aurora DSQL doesn't support the following.

    BEGIN; CREATE TABLE FOO (ID_col integer); INSERT into FOO VALUES (1); COMMIT;
  • Finally, Aurora DSQL runs DDL statements asynchronously. This means that changes to large tables, such as adding an index or modifying a column, can run without downtime or performance impact. For more information about Aurora DSQL's asynchronous job manager, see Creating async indexes in Aurora DSQL.

プライバシーサイト規約Cookie の設定
© 2025, Amazon Web Services, Inc. or its affiliates.All rights reserved.