aws_s3
aws_s3 postgres extension to import/export data from/to s3
Repository
chimpler/postgres-aws-s3
https://github.com/chimpler/postgres-aws-s3
Source
aws_s3-0.0.1.tar.gz
aws_s3-0.0.1.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
aws_s3 | 0.0.1 | FDW | Apache-2.0 | SQL |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 8800 | aws_s3 | No | No | No | Yes | No | Yes | - |
| Related | file_fdw pg_parquet pg_bulkload pg_lake pg_ducklake pg_fact_loader pg_csv basic_archive duckdb_fdw basebackup_to_shell |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.0.1 | 1817161514 | aws_s3 | - |
| RPM | PIGSTY | 0.0.1 | 1817161514 | aws_s3_$v | - |
| DEB | PIGSTY | 0.0.1 | 1817161514 | postgresql-$v-aws-s3 | - |
Build
You can build the RPM / DEB packages for aws_s3 using pig build:
Install
You can install aws_s3 directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
aws_s3: PostgreSQL extension to import/export data from/to S3
Setup Credentials
Configure AWS credentials via PostgreSQL session variables:
For local development with LocalStack:
Import Data from S3
Parameters: table name, column list (empty string for all), COPY options, S3 bucket, S3 key, AWS region.
Export Data to S3
Parameters: SQL query, S3 bucket, S3 key, AWS region, COPY options.
Features
- Files with
Content-Encoding=gzipmetadata are automatically decompressed during import - Credentials can be passed directly as function arguments or via session variables
- Uses the same COPY format options as PostgreSQL (CSV, TEXT, BINARY, with all related settings like DELIMITER, HEADER, NULL, etc.)
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)