> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# SQL Catalog

> Configure a PostgreSQL or MySQL-backed Apache Iceberg SQL catalog as a destination in Artie with S3, GCS, or Azure ADLS storage.

Use an existing PostgreSQL or MySQL database to store Apache Iceberg catalog metadata while writing Parquet data files to Amazon S3, an S3-compatible store, Google Cloud Storage (GCS), or Azure ADLS Gen2. SQL catalogs run on Artie's native Iceberg engine and support Iceberg v2, Iceberg v3, `VARIANT` columns, and scheduled table maintenance.

## What you'll need

* A PostgreSQL or MySQL database reachable from your Artie data plane (only `postgres` and `mysql` dialects are supported).
* A database user with `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and (unless catalog tables are pre-created) `CREATE TABLE` privileges on the catalog database.
* A **Warehouse location** URI matching your object storage backend (`s3://`, `s3a://`, `gs://`, or `abfss://`) and its credentials (see [Object storage backends](/docs/destinations/iceberg/storage-backends)).

## Setup

**Step 1: Select SQL Catalog in Artie**

In the Artie dashboard, create a new **Iceberg** destination and select **SQL catalog (PostgreSQL or MySQL)** as the catalog type.

**Step 2: Configure the catalog database**

Enter the connection settings for your metadata database:

* **Catalog database**: Choose **PostgreSQL** (`postgres`) or **MySQL** (`mysql`).
* **Host**: Database hostname or IP address (do not include `:port`).
* **Port**: Defaults to `5432` for PostgreSQL and `3306` for MySQL.
* **Database**: Target database name.
* **Username** and **Password**: Credentials for the catalog database (password is encrypted at rest). MySQL usernames cannot contain `:`.
* **Catalog name**: Optional logical catalog name stored in the Iceberg catalog tables (`iceberg_tables` / `iceberg_namespace_properties`). Defaults to `sql` if left empty.

**Step 3: Configure TLS verification**

Artie encrypts SQL catalog connections with verified TLS by default (`sslmode=verify-full` for PostgreSQL, `tls=true` for MySQL).

**Verify certificate (recommended)**

Keep **TLS** on **Verify certificate**. If your database uses a private or cloud-specific certificate authority (such as an AWS RDS CA bundle), paste the PEM-encoded certificate into **CA certificate**.

**Skip verification (insecure)**

Select **Skip verification (insecure)** (`skip-verify`) only for development or self-signed databases where a CA certificate is unavailable. Leave **CA certificate** empty when skipping verification.

> **Warning:**
>
> **Skip verification** still encrypts the connection but does not verify the server's certificate or hostname.

**Step 4: Configure object storage and test**

Enter your **Warehouse location** URI and configure your **Object storage** credentials (see [Object storage backends](/docs/destinations/iceberg/storage-backends)). Select **Test connection** to verify both the SQL database and object store, then save.

## Advanced

**Pre-created catalog tables (sqlInitCatalogTables — API only)**

By default, Artie initializes Iceberg's metadata tables (`iceberg_tables` and `iceberg_namespace_properties`) if they do not exist. If your database role does not have `CREATE TABLE` privileges and your DBA pre-creates those tables, set `sqlInitCatalogTables: false` via the Artie API so Artie skips table initialization on startup.

**Custom catalog properties (API only)**

Additional non-reserved SQL catalog properties can be passed in the `properties` map via the Artie API. Reserved credential, URI, and endpoint keys are rejected—see [Reserved properties](/docs/destinations/iceberg/storage-backends#reserved-properties) for the full list.

## Next steps

* Review storage backend setup in [Object storage backends](/docs/destinations/iceberg/storage-backends).
* Configure Iceberg v3, partitioning, and scheduled table maintenance in [Tuning, partitioning, and maintenance](/docs/destinations/iceberg/tuning-and-maintenance).