---
title: "Supabase Wrappers v0.2: Query Pushdown & Remote Subqueries"
description: "Supabase Wrappers v0.2, a Rust-based Postgres foreign data wrapper framework for querying third-party sources with SQL, adds query pushdown, remote subqueries and per-FDW usage statistics."
url: "https://swe.quest/articles/supabase-wrappers-v0-2-query-pushdown-remote-subqueries-4a8d4853bc0c2d1c"
canonical: "https://supabase.com/blog/supabase-wrappers-v02"
source: "Supabase"
published: "2023-12-14"
difficulty: "medium"
kind: "Release"
reading_minutes: 4
tags: ["postgres","databases","rust"]
---

# Supabase Wrappers v0.2: Query Pushdown & Remote Subqueries

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2023-12-14, 4 min read, Release. Original: [https://supabase.com/blog/supabase-wrappers-v02](https://supabase.com/blog/supabase-wrappers-v02)

## Summary

Supabase Wrappers v0.2, a Rust-based Postgres foreign data wrapper framework for querying third-party sources with SQL, adds query pushdown, remote subqueries and per-FDW usage statistics. Pushdown is implemented inside each wrapper, so a filter on a Stripe customer id becomes a single API call and ClickHouse queries can push down ORDER BY and LIMIT. Remote subqueries map a static query, or a parameterized ClickHouse/BigQuery view whose parameters are exposed as columns, onto a foreign table. A new wrappers\_fdw\_stats table records rows and bytes transferred in each direction for spotting bottlenecks, and the release also adds Airtable and S3 wrappers.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Rust](https://swe.quest/tags/rust.md) (Languages)

## Prerequisites

- PostgreSQL foreign data wrappers ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Supabase Wrappers, Postgres FDW, ClickHouse, BigQuery, Stripe, pgrx, AWS S3, Airtable

## Related posts

- [Supabase Wrappers, a Postgres FDW framework written in Rust](https://swe.quest/articles/supabase-wrappers-a-postgres-fdw-framework-written-in-rust-284bf0f40798dcde.md): Supabase · 2022-12-15 · Medium · 9 min read · PostgreSQL, Rust, Data pipelines, Analytics & OLAP
  Supabase Wrappers is an alpha Rust framework, built on pgx, for writing Postgres Foreign Data Wrappers that expose external systems such as Stripe and Firebase as queryable foreign tables.
- [Adding Async Streaming to Postgres Foreign Data Wrappers](https://swe.quest/articles/adding-async-streaming-to-postgres-foreign-data-wrappers-200bc8dce10fc011.md): Supabase · 2025-12-04 · Medium · 4 min read · PostgreSQL, Rust, Concurrency, Analytics & OLAP
  Supabase Wrappers' ClickHouse foreign data wrapper now streams results asynchronously instead of fetching full result sets or fixed batches while blocking the Postgres backend.
- [Adding Real Time Analytics to a Supabase Application With ClickHouse](https://swe.quest/articles/adding-real-time-analytics-to-a-supabase-application-with-clickhouse-e40be6671b77f55d.md): ClickHouse · 2023-05-15 · Medium · 16 min read · Analytics & OLAP, PostgreSQL, System design, Frontend
  HouseClick, a demo estate-agency app, keeps ~1000 current listings in Supabase Postgres and serves analytics over the ~30M-row UK house price dataset from ClickHouse Cloud.
- [Sync Stripe Data to Your Supabase Database in One Click](https://swe.quest/articles/sync-stripe-data-to-your-supabase-database-in-one-click-b7cbed62c6a06c5c.md): Supabase · 2025-12-19 · Medium · 5 min read · Payments & fintech, PostgreSQL, Data pipelines, SQL
  Supabase now offers a one-click Stripe Sync Engine integration that copies Stripe customers, subscriptions, invoices and payments into real Postgres tables, kept current via webhooks plus scheduled backfills run through pgmq-based Supabase Queues and Edge Functions with retries.
- [Postgres Foreign Data Wrappers with Wasm](https://swe.quest/articles/postgres-foreign-data-wrappers-with-wasm-121e854eab291417.md): Supabase · 2024-08-16 · Medium · 5 min read · PostgreSQL, WebAssembly, Rust, Sandboxing & isolation
  Supabase Wrappers, a Rust framework for building Postgres Foreign Data Wrappers, now supports WebAssembly FDWs that are downloaded from URLs like GitHub or S3, checksum-verified, cached and run in a sandboxed Wasm runtime inside the Postgres extension.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
