pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can we get SQL Server-like cross database queries
Date: Wed, 3 Jun 2020 23:26:22 -0500
Message-ID: <a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@gmail.com> (raw)
In-Reply-To: <FDD6456F-89BF-432B-98AC-AA1BFAA20549@gmail.com>
References: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com>
	<1148385.1591213602@sss.pgh.pa.us>
	<FDD6456F-89BF-432B-98AC-AA1BFAA20549@gmail.com>

On 6/3/20 2:57 PM, Rob Sargent wrote:
>> On Jun 3, 2020, at 1:46 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>
>> Guyren Howe <guyren@gmail.com> writes:
>>> Is it practical to provide the SQL Server-like feature in Postgres?
>> No.
>>
>> 			regards, tom lane
>>
>>
> That got me chuckling.
> I had just decided not to bother posting, but well, here goes.
>
> I call bs on the “cross db query” notion of tsql - but I admit I haven’t used it since it was a Sybase thing.
>
> Is db.owner.table (iirc) is really anything more than nuance on schema.table.  Does a db for automotive parts need to be up-close-and-personal with a db payroll?

Those aren't the only two databases that exist.  Think of a federated system 
where you've got a "reference" database full of lookup tables, and one 
database for every 10,000 customers. For 45,000 customers you've got five 
databases, and they all need to access the reference database, plus "all 
customers" queries need to access all five databases.

-- 
Angular momentum makes the world go 'round.





view thread (8+ messages)  latest in thread

Message-ID: <a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@gmail.com>
Permalink:  ../a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@gmail.com/
Also on:    postgresql.org/message-id/a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@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: ronljohnsonjr@gmail.com
  Subject: Re: Can we get SQL Server-like cross database queries
  In-Reply-To: <a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@gmail.com>
  References: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com> <1148385.1591213602@sss.pgh.pa.us> <FDD6456F-89BF-432B-98AC-AA1BFAA20549@gmail.com> <a3ebaec3-c7b6-c3b7-06d6-adc16b3d64af@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