All posts

Federation Pgcli: Fast, Unified Access to Federated PostgreSQL Databases

The cursor blinked against a black terminal window, waiting for the next command. You type pgcli and it responds instantly—fast tab completion, syntax highlighting, and smart suggestions for your PostgreSQL shell. Now imagine that same experience, but across federated databases without the overhead of multiple connections, embedded scripts, or painful context-switching. That is the power of Federation Pgcli. Federation Pgcli combines the interactive muscle of pgcli with the reach of database fe

Free White Paper

PostgreSQL Access Control + Customer Support Access to Production: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

The cursor blinked against a black terminal window, waiting for the next command. You type pgcli and it responds instantly—fast tab completion, syntax highlighting, and smart suggestions for your PostgreSQL shell. Now imagine that same experience, but across federated databases without the overhead of multiple connections, embedded scripts, or painful context-switching. That is the power of Federation Pgcli.

Federation Pgcli combines the interactive muscle of pgcli with the reach of database federation. It lets you query multiple Postgres instances, or even different data sources unified through Postgres foreign data wrappers (FDW), in one cohesive flow. No more juggling logins. No more opening separate terminals or writing custom glue code.

With Federation Pgcli, you connect to your federation gateway once. Every remote table becomes instantly available, with autocompletion that knows your schema across all linked sources. You can join tables from different databases as if they were local. Performance tuning becomes simpler because you monitor and query from a single shell, leveraging Postgres' planner across federated data.

Continue reading? Get the full guide.

PostgreSQL Access Control + Customer Support Access to Production: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Key capabilities include:

  • Unified schema navigation across heterogeneous sources through FDW.
  • Smart autocompletion that spans federated tables.
  • Consistent syntax highlighting in multi-source queries.
  • Seamless joins between remote and local datasets.
  • Single authentication point for all sources in the federation network.

Setting up Federation Pgcli is straightforward. Install pgcli via pip or your package manager. Configure your Postgres instance with FDWs for each target source. Point Pgcli to the federated gateway database, and you’re ready. All federation logic is handled in Postgres, so Pgcli works as if the data lives natively in one place.

Engineers use it to cut query time from minutes to seconds. Managers rely on it to ensure teams spend less time connecting and more time analyzing. Federation Pgcli doesn’t replace your existing database tools—it compresses them into a single, efficient command-line interface that delivers Postgres federation at its fastest.

Stop writing glue code just to read your data. See how Federation Pgcli works with hoop.dev and get it live in minutes.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts