pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Can we get SQL Server-like cross database queries
Date: Wed, 3 Jun 2020 12:31:57 -0700
Message-ID: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com> (raw)

One of the few really useful features of SQL Server that Postgres doesn’t have is straightforward cross-database queries.

You can reference any table in any database on the same server you’re on as database.schema.table.

With Postgres, it is necessary to set up a FDW connection between every database where you want to perform a query and the database you want to query. In an analytics environment where a single server might have a hundred or so smaller databases, this is a grossly inefficient proposition.

Is it practical to provide the SQL Server-like feature in Postgres?

view thread (8+ messages)  latest in thread

Message-ID: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com>
Permalink:  ../84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com/
Also on:    postgresql.org/message-id/84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guyren@gmail.com
  Subject: Re: Can we get SQL Server-like cross database queries
  In-Reply-To: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com>
  References: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox