Re: Suggestion for Easier Cross-Database Query Handling in PostgreSQL

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Isaac Morland <isaac(dot)morland(at)gmail(dot)com>
Cc: Shivam Pandey <shivampandey91199(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Suggestion for Easier Cross-Database Query Handling in PostgreSQL
Date: 2026-07-07 20:34:29
Message-ID: CAHyXU0zSj1SXxyWr-Jwk7SVEMGDsKu9VtT6vJLPyWqaHtVFaYA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 15, 2026 at 8:15 PM Isaac Morland <isaac(dot)morland(at)gmail(dot)com>
wrote:

> On Fri, 15 May 2026 at 18:06, Shivam Pandey <shivampandey91199(at)gmail(dot)com>
> wrote:
>
>> Hello PostgreSQL Team,
>>
>> I would like to share feedback from a developer perspective regarding
>> cross-database querying in PostgreSQL.
>>
>> One feature that many developers appreciate in MySQL is the ability to
>> directly query and join tables across multiple databases within the same
>> server instance. This approach becomes very useful in real-world situations
>> where applications need to access shared or distributed data quickly and
>> efficiently.
>>
>
> What MySQL calls databases PostgreSQL calls schemas, and PostgreSQL
> certainly has the ability to query and join tables across schemas.
>
> What MySQL might call an instance (a collection of MySQL databases)
> PostgreSQL calls a database (a collection of PostgreSQL schemas). A single
> PostgreSQL instance has the ability to host multiple databases (albeit
> sharing a single set of roles and role relationships). Can MySQL query and
> join across multiple instances?
>

mysql treats SCHEMA and DATABASE the same. So the features are at parity
from an isolation standpoint. (This is also why you won't get this feature
since most of the benefits from cross database querying are already
present).

Besides. postgres schemas are better in pretty much every way, mainly due
to the games you can play with search_path and plan invalidation,
especially in p/pgsql.

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2026-07-11 04:22:02 Identifying build options
Previous Message Igor Korot 2026-07-05 21:17:09 Re: Get version info