From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Thomas Munro <thomas.munro@gmail.com>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Can we get SQL Server-like cross database queries
Date: Thu, 04 Jun 2020 07:56:49 +0200
Message-ID: <39ebae9e6498e4fce6e80f94dfc222d7b032ad84.camel@cybertec.at> (raw)
In-Reply-To: <CA+hUKGLAG4vS0K=bt6=MGCA0Q4MmLjkX6uiDrvLSvAUoD8eQfg@mail.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>
<CA+hUKGLAG4vS0K=bt6=MGCA0Q4MmLjkX6uiDrvLSvAUoD8eQfg@mail.gmail.com>
On Thu, 2020-06-04 at 16:41 +1200, Thomas Munro wrote:
> There's no doubt it's useful, and it's also part of the SQL spec,
> which says you can do catalog.schema.table. I would guess that we
> might get that as a byproduct of any project to make PostgreSQL
> multithreaded. That mountain moving operation will require us to get
> rid of all the global state that currently ties a whole process to one
> session and one database, and replace it with heap objects with names
> like Session and Database that can be passed around between worker
> threads.
I am -1 on cross-database queries.
I think it is a desirable feature to have databases isolated from
each other, so you don't have to worry about a permission you forgot
that allows somebody to access a different database.
I think this is particularly relevant since all databases share the
same users.
I understand that sometimes the opposite would be desirable, but
foreign data wrappers have alleviated that pain.
Yours,
Laurenz Albe
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: laurenz.albe@cybertec.at, thomas.munro@gmail.com, ronljohnsonjr@gmail.com
Subject: Re: Can we get SQL Server-like cross database queries
In-Reply-To: <39ebae9e6498e4fce6e80f94dfc222d7b032ad84.camel@cybertec.at>
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> <CA+hUKGLAG4vS0K=bt6=MGCA0Q4MmLjkX6uiDrvLSvAUoD8eQfg@mail.gmail.com> <39ebae9e6498e4fce6e80f94dfc222d7b032ad84.camel@cybertec.at>
* 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