Why Postgres FDW Made My Queries Slow (and How I Fixed It)
svix.com·2d·
Flag this post

Cover image

Svix is the enterprise ready webhooks sending service. With Svix, you can build a secure, reliable, and scalable webhook platform in minutes. Looking to send webhooks? Give it a try!

I recently needed to run some complex queries using Postgres Foreign Data Wrappers (FDWs) and got hit by quite a few gotchas. The biggest one: I assumed my queries would run on the remote (FDW) Postgres, but they actually ran on our Postgres instead. The planner couldn’t push the work to remote Postgres, so my “remote” query pulled massive amounts of data across the network and did all the heavy lifting on our Postgres.

I’m writin…

Similar Posts

Loading similar posts...