Install Snowflake FDW lets PostgreSQL query Snowflake tables as if they were local.
Installing Snowflake in PostgreSQL usually refers to adding the snowflake_fdw
extension. This Foreign Data Wrapper (FDW) lets you read and write Snowflake data from Postgres using regular SQL.
Run CREATE EXTENSION snowflake_fdw;
in a superuser session. Optionally specify SCHEMA
or VERSION
as shown in the syntax section.
FDWs avoid data duplication, allow real-time access, and keep SQL identical across systems.They are ideal for ad-hoc queries or small data sets.
Create a foreign server with Snowflake account details, then map users and import the target tables.
Yes.Once the FDW is active, you can SELECT
, JOIN
, and even INSERT
/UPDATE
if write privileges are enabled, just like normal Postgres tables.
Use connection pooling, limit the columns you import, and push down filters with WHERE clauses to minimize data transfer.
See the common mistakes section below for quick fixes.
.
No, it is community-maintained. Test thoroughly before production use.
Yes. Place parameters in the WHERE clause to push filters down to Snowflake.
INSERT, UPDATE, and DELETE work if your Snowflake role has the correct privileges and the FDW build supports writable foreign tables.