スキップしてコンテンツを表示

AuroraPostgreSQL 17.5 tablespace

0

担当者様

質問 ① AuroraPostgreSQL 17.5 でtablespaceは作成できますか。 ② 表領域が作成できる場合、  AuroraのストレージはAWS管理の分散ストレージなのに、なぜ表領域を作成できるのでしょうか。 ③ 表領域が作成できる場合、  指定する「LOCATION」は、任意の場所でよいのでしょうか。

以上、宜しくお願い致します。

質問済み 9ヶ月前274ビュー

1回答
0
承認された回答

Yes, you can create tablespaces in Aurora PostgreSQL 17.5.

Aurora PostgreSQL supports tablespace functionality despite using AWS-managed distributed storage because it maintains compatibility with standard PostgreSQL. Tablespaces in Aurora PostgreSQL provide logical organization of database objects and allow you to control where specific tables and indexes are stored.

Regarding the LOCATION parameter when creating tablespaces in Aurora PostgreSQL, you don't have complete freedom to specify any arbitrary location. Aurora PostgreSQL manages the physical storage automatically through its shared storage architecture. When you create a tablespace, Aurora PostgreSQL will create it in a predetermined location within the Aurora storage system. For example, tablespaces might be created in locations like "/rdsdbdata/tablespaces/app_data/tbs_0".

You can use tablespaces in Aurora PostgreSQL for various operations such as:

  • Creating databases with specific tablespaces: CREATE DATABASE DB1 TABLESPACE TBS_01;
  • Assigning tables to tablespaces: CREATE TABLE TBL(COL1 NUMERIC, COL2 VARCHAR(10)) TABLESPACE TBS_01;
  • Assigning indexes to tablespaces: CREATE INDEX IDX_TBL ON TBL(COL1) TABLESPACE TBS_01;
  • Renaming tablespaces: ALTER TABLESPACE TBS_01 RENAME TO IDX_TBS_01;
  • Changing tablespace ownership: ALTER TABLESPACE TO IDX_TBS_01 OWNER TO USER1;

You can view tablespace information using PostgreSQL system catalogs.
Sources
Oracle and PostgreSQL tablespaces and data files - Oracle to Aurora PostgreSQL Migration Playbook
Amazon Aurora now supports PostgreSQL 17.5, 16.9, 15.13, 14.18, and 13.21 - AWS

回答済み 9ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ