v0.1 Cloud Storage (mooncake.create_secret)
Configuring S3 and Cloudflare R2 buckets in pg_mooncake v0.1 using mooncake.create_secret and mooncake.default_bucket.
Legacy
pg_mooncake v0.1 Archive (Delta Lake Engine)This page documents pg_mooncake v0.1, which used direct CREATE TABLE ... USING columnstore DDL and Delta Lake storage. Starting in v0.2 and PGSTY’s v0.3.0 release, pg_mooncake uses moonlink real-time columnstore mirrors (CALL mooncake.create_table + USING mooncake) and Apache Iceberg v2. For current documentation, see Introduction and v0.1 vs v0.2 & v0.3.
Current
v0.3.0 Cloud Storage SetupIn v0.2 and v0.3.0, credentials are inserted into duckdb.secrets rather than mooncake.create_secret. See Iceberg & Object Storage.
S3 Buckets (v0.1)
For S3 Express buckets:
Cloudflare R2 Buckets (v0.1)
Set Default Bucket
S3 and R2 Parameters
| Parameter | Description | Required |
|---|---|---|
name |
Name for your credentials | Yes |
key_id |
S3 / R2 access key ID | Yes |
secret |
S3 / R2 secret access key | Yes |
REGION |
AWS region where your bucket is located | Yes |
ENDPOINT |
Custom endpoint for R2 or S3 Express | Yes (R2 / S3 Express) |
SCOPE |
Bucket prefix path to scope credentials (e.g. s3://mybucket) |
No |