

# Data organization for integrations with Amazon S3 Tables

**Important**  
This is preview documentation for the Aurora PostgreSQL integration with Amazon S3 Tables. Before using this capability, review the Betas and Previews terms in the [AWS Service Terms](https://aws.amazon.com/service-terms/).

The Aurora PostgreSQL integration with Amazon S3 Tables creates one namespace in the target table bucket for each source database that your data rules match. In each namespace, it creates one Apache Iceberg table for each source table that your data rules include and that can be replicated. For the tables that cannot be replicated, see [Aurora PostgreSQL table limitations](zero-etl.reqs-lims.md#s3tables-integration.limitations.tables).

**Topics**
+ [Namespace and table names](#s3tables-integration.data-organization.names)
+ [Name translation examples](#s3tables-integration.data-organization.name-examples)
+ [Column names](#s3tables-integration.data-organization.columns)
+ [Managed target tables](#s3tables-integration.data-organization.managed)

## Namespace and table names
<a name="s3tables-integration.data-organization.names"></a>

The integration names namespaces and tables as follows:
+ Each namespace is named `{{prefix}}_{{database}}`, where {{prefix}} is the `TargetPrefix` value in your data rules and {{database}} is the source database name. For more information about data rules, see [Data rules for integrations with Amazon S3 Tables](s3tables-integration.data-rules.md).
+ Each table is named `{{schema}}_{{table}}`, where {{schema}} is the source schema name and {{table}} is the source table name.

Uppercase ASCII letters are changed to lowercase, and hyphens are changed to underscores. The resulting name must follow the Amazon S3 Tables naming rules: 1 to 255 characters, only lowercase letters, numbers, and underscores, and beginning with a letter or number. A namespace name also cannot start with `aws`. For more information, see [Amazon S3 table bucket, table, and namespace naming rules](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-tables-buckets-naming.html) in the *Amazon Simple Storage Service User Guide*.

If a name does not follow these rules, for example because the source name contains a space, a period, or a non-ASCII character, the table is not replicated. It enters the `FAILED` state with the reason `SOURCE_UNSUPPORTED_TABLE_NAME`. If the name collides with another table name that is already replicating, the table is not replicated and enters the `FAILED` state with the reason `TARGET_NAME_COLLISION`.

For example, the table `public.orders` in the database `sales`, with the prefix `my_prefix`, replicates to the Apache Iceberg table `public_orders` in the namespace `my_prefix_sales`.

## Name translation examples
<a name="s3tables-integration.data-organization.name-examples"></a>

The following table shows how the integration translates source names into namespace and table names when the target prefix is `acme`. In this table, "folded to lowercase" means that uppercase letters are changed to lowercase.


| Source database, schema, and table | Target namespace | Target table | Notes | 
| --- | --- | --- | --- | 
| app\_db / public / OrderHistory | acme\_app\_db | public\_orderhistory | Uppercase letters are folded to lowercase. | 
| app\_db / public / "Orders" | acme\_app\_db | public\_orders | Uppercase letters are folded to lowercase. | 
| app\_db / public / orders | acme\_app\_db | public\_orders | Collides with the "Orders" source table. | 
| AppDB / public / customers | acme\_appdb | public\_customers | The database name is folded to lowercase. | 
| app-db / sales / order-items | acme\_app\_db | sales\_order\_items | Hyphens become underscores (\_). The namespace collides with app\_db. | 
| app\_db / "Sales\_EU" / "OrderHistory" | acme\_app\_db | sales\_eu\_orderhistory | Both the schema name and the table name are folded to lowercase. | 
| app\_db / sales / q1\_data | acme\_app\_db | sales\_q1\_data | Collides with app\_db / sales\_q1 / data. If both are in the same integration, the table fails with TARGET\_NAME\_COLLISION. | 
| app\_db / sales\_q1 / data | acme\_app\_db | sales\_q1\_data | Collides with app\_db / sales / q1\_data. If both are in the same integration, the table fails with TARGET\_NAME\_COLLISION. | 
| app\_db / public / order\_history\_2026 | acme\_app\_db | public\_order\_history\_2026 | Digits and underscores (\_) are kept. | 
| app\_db / public / "Order History" | acme\_app\_db | No table created | The table enters the FAILED state with the reason SOURCE\_UNSUPPORTED\_TABLE\_NAME because the name contains a space. | 
| app\_db / public / "café" | acme\_app\_db | No table created | The table enters the FAILED state with the reason SOURCE\_UNSUPPORTED\_TABLE\_NAME because the name contains a non-ASCII character. | 
| "App DB" / public / orders | No namespace created | No table created | The namespace fails, so every table in this database fails. | 

## Column names
<a name="s3tables-integration.data-organization.columns"></a>

Unlike namespace and table names, column names are not translated. Each column keeps its exact source name, including uppercase letters, hyphens, periods, non-ASCII characters, and a leading underscore or digit. For example, `CustomerName`, `ORDER_ID`, `first-name`, `a.b`, `café`, `_lead`, and `1st` all replicate unchanged.

A column name cannot contain a space, a comma (`,`), a semicolon (`;`), braces (`{` or `}`), parentheses (`(` or `)`), an equals sign (`=`), a tab, or a newline. If a table has such a column, the table is not replicated and enters the `FAILED` state with the reason `SOURCE_UNSUPPORTED_COLUMN_NAME`. The `status_detail` value names the column, for example: `Found unsupported character in column name: "my col".` The integration stays `active`, and its other tables keep replicating. The same applies when you add or rename a column after you create the integration. To replicate the table, either exclude the column in your data rules, or rename the column and then resync the table. For more information, see [Resyncing tables manually](s3tables-integration.resyncing.md#s3tables-integration.resyncing.manual).

## Managed target tables
<a name="s3tables-integration.data-organization.managed"></a>

Amazon S3 Tables shows each target table's format as `ICEBERG` and shows Amazon RDS as the managing service. The managing service appears in the `managedByService` field of the Amazon S3 Tables `GetTable` API response. You can query and drop a target table, but you cannot modify its data (for example, with INSERT, UPDATE, or DELETE statements). Before you drop a target table, see [Namespace-level access control and Lake Formation](s3tables-integration.security.md#s3tables-integration.security.namespaces) to learn how dropping it affects replication.

After you turn on integration with AWS analytics services for table buckets, each namespace appears as a database in the `s3tablescatalog/{{my-table-bucket}}` subcatalog of the AWS Glue Data Catalog, where {{my-table-bucket}} is the name of your target table bucket. For instructions, see [Turning on integration with AWS analytics services](zero-etl.setting-up.md#s3tables-integration.setting-up.analytics).

To control access to the replicated data for each source database, see [Namespace-level access control and Lake Formation](s3tables-integration.security.md#s3tables-integration.security.namespaces). That section also describes what happens when you delete a target table or a namespace.