Skip to content

wrappers

Foreign data wrappers developed by Supabase

wrappers · Foreign data wrappers developed by Supabase

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
8500wrapperswrappers0.6.4FDWApache-2.0Rust
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
--s-d-rNoYesNoYesyesno
Relationships
See Alsoodbc_fdw multicorn jdbc_fdw
Installed wrappers depend on build features.

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY0.6.419 18 17 16 15wrappers-
RPMPIGSTY0.6.419 18 17 16 15wrappers_$v-
DEBPIGSTY0.6.419 18 17 16 15postgresql-$v-wrappers-
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
el8.aarch64N/APIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
el9.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
el9.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
el10.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
el10.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
d12.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
d12.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
d13.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
d13.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u22.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u22.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u24.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u24.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u26.x86_64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
u26.aarch64PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4PIGSTY 0.6.4
PackageVersionOSORGSIZEFile URL
wrappers_190.6.4el9.x86_64pigsty44.3 MiBwrappers_19-0.6.4-2PGSTY.el9.x86_64.rpm
wrappers_190.6.4el9.aarch64pigsty40.0 MiBwrappers_19-0.6.4-2PGSTY.el9.aarch64.rpm
wrappers_190.6.4el10.x86_64pigsty45.4 MiBwrappers_19-0.6.4-2PGSTY.el10.x86_64.rpm
wrappers_190.6.4el10.aarch64pigsty40.8 MiBwrappers_19-0.6.4-2PGSTY.el10.aarch64.rpm
postgresql-19-wrappers0.6.4d12.x86_64pigsty29.5 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~bookworm_amd64.deb
postgresql-19-wrappers0.6.4d12.aarch64pigsty25.6 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~bookworm_arm64.deb
postgresql-19-wrappers0.6.4d13.x86_64pigsty30.2 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~trixie_amd64.deb
postgresql-19-wrappers0.6.4d13.aarch64pigsty26.3 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~trixie_arm64.deb
postgresql-19-wrappers0.6.4u22.x86_64pigsty31.9 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~jammy_amd64.deb
postgresql-19-wrappers0.6.4u22.aarch64pigsty28.2 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~jammy_arm64.deb
postgresql-19-wrappers0.6.4u24.x86_64pigsty32.3 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~noble_amd64.deb
postgresql-19-wrappers0.6.4u24.aarch64pigsty28.4 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~noble_arm64.deb
postgresql-19-wrappers0.6.4u26.x86_64pigsty32.7 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~resolute_amd64.deb
postgresql-19-wrappers0.6.4u26.aarch64pigsty28.5 MiBpostgresql-19-wrappers_0.6.4-2PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
wrappers_180.6.4el8.x86_64pigsty36.1 MiBwrappers_18-0.6.4-1PGSTY.el8.x86_64.rpm
wrappers_180.6.4el8.aarch64pigsty32.7 MiBwrappers_18-0.6.4-1PGSTY.el8.aarch64.rpm
wrappers_180.6.4el9.x86_64pigsty44.3 MiBwrappers_18-0.6.4-2PGSTY.el9.x86_64.rpm
wrappers_180.6.4el9.aarch64pigsty40.2 MiBwrappers_18-0.6.4-2PGSTY.el9.aarch64.rpm
wrappers_180.6.4el10.x86_64pigsty45.4 MiBwrappers_18-0.6.4-2PGSTY.el10.x86_64.rpm
wrappers_180.6.4el10.aarch64pigsty40.9 MiBwrappers_18-0.6.4-2PGSTY.el10.aarch64.rpm
postgresql-18-wrappers0.6.4d12.x86_64pigsty29.5 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~bookworm_amd64.deb
postgresql-18-wrappers0.6.4d12.aarch64pigsty25.6 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~bookworm_arm64.deb
postgresql-18-wrappers0.6.4d13.x86_64pigsty30.3 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~trixie_amd64.deb
postgresql-18-wrappers0.6.4d13.aarch64pigsty26.3 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~trixie_arm64.deb
postgresql-18-wrappers0.6.4u22.x86_64pigsty31.9 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~jammy_amd64.deb
postgresql-18-wrappers0.6.4u22.aarch64pigsty28.2 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~jammy_arm64.deb
postgresql-18-wrappers0.6.4u24.x86_64pigsty32.3 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~noble_amd64.deb
postgresql-18-wrappers0.6.4u24.aarch64pigsty28.4 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~noble_arm64.deb
postgresql-18-wrappers0.6.4u26.x86_64pigsty32.7 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~resolute_amd64.deb
postgresql-18-wrappers0.6.4u26.aarch64pigsty28.5 MiBpostgresql-18-wrappers_0.6.4-2PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
wrappers_170.6.4el8.x86_64pigsty36.1 MiBwrappers_17-0.6.4-1PGSTY.el8.x86_64.rpm
wrappers_170.6.4el8.aarch64pigsty32.7 MiBwrappers_17-0.6.4-1PGSTY.el8.aarch64.rpm
wrappers_170.6.4el9.x86_64pigsty44.3 MiBwrappers_17-0.6.4-2PGSTY.el9.x86_64.rpm
wrappers_170.6.4el9.aarch64pigsty40.2 MiBwrappers_17-0.6.4-2PGSTY.el9.aarch64.rpm
wrappers_170.6.4el10.x86_64pigsty45.4 MiBwrappers_17-0.6.4-2PGSTY.el10.x86_64.rpm
wrappers_170.6.4el10.aarch64pigsty41.0 MiBwrappers_17-0.6.4-2PGSTY.el10.aarch64.rpm
postgresql-17-wrappers0.6.4d12.x86_64pigsty29.5 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~bookworm_amd64.deb
postgresql-17-wrappers0.6.4d12.aarch64pigsty25.6 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~bookworm_arm64.deb
postgresql-17-wrappers0.6.4d13.x86_64pigsty30.3 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~trixie_amd64.deb
postgresql-17-wrappers0.6.4d13.aarch64pigsty26.3 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~trixie_arm64.deb
postgresql-17-wrappers0.6.4u22.x86_64pigsty32.0 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~jammy_amd64.deb
postgresql-17-wrappers0.6.4u22.aarch64pigsty28.2 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~jammy_arm64.deb
postgresql-17-wrappers0.6.4u24.x86_64pigsty32.4 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~noble_amd64.deb
postgresql-17-wrappers0.6.4u24.aarch64pigsty28.4 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~noble_arm64.deb
postgresql-17-wrappers0.6.4u26.x86_64pigsty32.7 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~resolute_amd64.deb
postgresql-17-wrappers0.6.4u26.aarch64pigsty28.5 MiBpostgresql-17-wrappers_0.6.4-2PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
wrappers_160.6.4el8.x86_64pigsty36.1 MiBwrappers_16-0.6.4-1PGSTY.el8.x86_64.rpm
wrappers_160.6.4el8.aarch64pigsty32.7 MiBwrappers_16-0.6.4-1PGSTY.el8.aarch64.rpm
wrappers_160.6.4el9.x86_64pigsty44.3 MiBwrappers_16-0.6.4-2PGSTY.el9.x86_64.rpm
wrappers_160.6.4el9.aarch64pigsty40.2 MiBwrappers_16-0.6.4-2PGSTY.el9.aarch64.rpm
wrappers_160.6.4el10.x86_64pigsty45.4 MiBwrappers_16-0.6.4-2PGSTY.el10.x86_64.rpm
wrappers_160.6.4el10.aarch64pigsty41.0 MiBwrappers_16-0.6.4-2PGSTY.el10.aarch64.rpm
postgresql-16-wrappers0.6.4d12.x86_64pigsty29.5 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~bookworm_amd64.deb
postgresql-16-wrappers0.6.4d12.aarch64pigsty25.6 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~bookworm_arm64.deb
postgresql-16-wrappers0.6.4d13.x86_64pigsty30.3 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~trixie_amd64.deb
postgresql-16-wrappers0.6.4d13.aarch64pigsty26.3 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~trixie_arm64.deb
postgresql-16-wrappers0.6.4u22.x86_64pigsty32.0 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~jammy_amd64.deb
postgresql-16-wrappers0.6.4u22.aarch64pigsty28.2 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~jammy_arm64.deb
postgresql-16-wrappers0.6.4u24.x86_64pigsty32.4 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~noble_amd64.deb
postgresql-16-wrappers0.6.4u24.aarch64pigsty28.4 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~noble_arm64.deb
postgresql-16-wrappers0.6.4u26.x86_64pigsty32.7 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~resolute_amd64.deb
postgresql-16-wrappers0.6.4u26.aarch64pigsty28.5 MiBpostgresql-16-wrappers_0.6.4-2PGSTY~resolute_arm64.deb
PackageVersionOSORGSIZEFile URL
wrappers_150.6.4el8.x86_64pigsty36.1 MiBwrappers_15-0.6.4-1PGSTY.el8.x86_64.rpm
wrappers_150.6.4el8.aarch64pigsty32.7 MiBwrappers_15-0.6.4-1PGSTY.el8.aarch64.rpm
wrappers_150.6.4el9.x86_64pigsty44.4 MiBwrappers_15-0.6.4-2PGSTY.el9.x86_64.rpm
wrappers_150.6.4el9.aarch64pigsty40.1 MiBwrappers_15-0.6.4-2PGSTY.el9.aarch64.rpm
wrappers_150.6.4el10.x86_64pigsty45.5 MiBwrappers_15-0.6.4-2PGSTY.el10.x86_64.rpm
wrappers_150.6.4el10.aarch64pigsty40.9 MiBwrappers_15-0.6.4-2PGSTY.el10.aarch64.rpm
postgresql-15-wrappers0.6.4d12.x86_64pigsty29.5 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~bookworm_amd64.deb
postgresql-15-wrappers0.6.4d12.aarch64pigsty25.7 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~bookworm_arm64.deb
postgresql-15-wrappers0.6.4d13.x86_64pigsty30.3 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~trixie_amd64.deb
postgresql-15-wrappers0.6.4d13.aarch64pigsty26.4 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~trixie_arm64.deb
postgresql-15-wrappers0.6.4u22.x86_64pigsty32.0 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~jammy_amd64.deb
postgresql-15-wrappers0.6.4u22.aarch64pigsty28.2 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~jammy_arm64.deb
postgresql-15-wrappers0.6.4u24.x86_64pigsty32.3 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~noble_amd64.deb
postgresql-15-wrappers0.6.4u24.aarch64pigsty28.4 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~noble_arm64.deb
postgresql-15-wrappers0.6.4u26.x86_64pigsty32.7 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~resolute_amd64.deb
postgresql-15-wrappers0.6.4u26.aarch64pigsty28.5 MiBpostgresql-15-wrappers_0.6.4-2PGSTY~resolute_arm64.deb

Source

pig build pkg wrappers;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install wrappers;		# install by package name

pig install wrappers -v 19;   # install for PG 19
pig install wrappers -v 18;   # install for PG 18
pig install wrappers -v 17;   # install for PG 17
pig install wrappers -v 16;   # install for PG 16
pig install wrappers -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION wrappers;

Usage

Sources:

wrappers is both a Rust framework for writing PostgreSQL foreign data wrappers and a packaged collection of Supabase-maintained FDWs. A single extension installs many wrapper implementations, then each foreign server chooses the specific wrapper type it needs.

CREATE EXTENSION wrappers;

Typical Workflow

Create a server for one wrapper, then expose remote data through foreign tables:

CREATE SERVER stripe_server
  FOREIGN DATA WRAPPER stripe_wrapper
  OPTIONS (
    api_key_id 'stripe_api_key',
    api_url 'https://api.stripe.com/v1/'
  );

CREATE FOREIGN TABLE stripe_customers (
  id text,
  email text,
  name text,
  description text,
  created timestamp,
  attrs jsonb
)
  SERVER stripe_server
  OPTIONS (
    object 'customers',
    rowid_column 'id'
  );

What It Covers

Upstream ships wrappers for databases and services such as BigQuery, ClickHouse, DuckDB, DynamoDB, MySQL/Doris, Redis, S3, S3 Vectors, Stripe, Snowflake, Slack, Notion, OpenAPI, Infura, and many others. Read and write support varies by wrapper, but pushdown for WHERE, ORDER BY, and LIMIT is a core framework feature.

Version 0.6.2

The v0.6.2 release keeps the same extension model and adds:

  • a MongoDB FDW with read and write support
  • session-variable credentials for per-request authentication in WASM wrappers
  • RFC 8288 Link header pagination for the OpenAPI FDW
  • runtime, dependency, and wrapper-specific fixes documented in the release notes

Wrapper-specific pages remain the authority for server options, foreign-table columns, pushdown, and write support.

Caveats

  • Wrapper-specific options, supported objects, and write support differ widely; check the official catalog page for the exact FDW you use.
  • The docs warn that logical restores can fail when materialized views depend on foreign tables, so avoid that pattern or rely on physical backups.
  • Foreign tables do not provide a security boundary by themselves. Keep them in private schemas, grant access deliberately, use the least-privileged remote credentials available, and apply Row Level Security to local tables that expose or cache remote data.
  • Keep API keys and tokens in the supported secret store or per-request credential mechanism instead of embedding them in SQL checked into source control.

0.6.4 Update

The 0.6.4 release updates embedded DuckDB to 1.5.6 and repairs the Shopify/Paddle WASM interface definitions. The upstream Cargo manifest exposes PostgreSQL 13–18 targets and pgrx 0.19.2; packaged build choices can differ. The available wrappers depend on enabled build features. Upgrade the installed extension with matching library/SQL files and review the specific wrapper documentation before changing server options.

Table reader