From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Florian Pflug <fgp(at)phlo(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Synchronized snapshots versus multiple databases |
Date: | 2011-10-21 17:47:42 |
Message-ID: | CA+TgmoaMQRAVcqDm6uQPTWhz87Tofocn-XKCMerBEf5p=AChtw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Oct 21, 2011 at 1:40 PM, Florian Pflug <fgp(at)phlo(dot)org> wrote:
> AFAIR, the performance hit we'd take by making the vacuum cutoff point
> (i.e. GetOldestXmin()) global instead of database-local has been repeatedly
> used in the past as an against against cross-database queries. I have to
> admit that I currently cannot seem to find an entry in the archives to
> back that up, though.
I think the main argument against cross-database queries is that every
place in the backend that, for example, uses an OID to identify a
table would need to be modified to use a database OID and a table OID.
Even if the distributed performance penalty of such a change doesn't
bother you, the amount of code churn that it would take to make such a
change is mind-boggling.
I haven't seen anyone explain why they really need this feature
anyway, and I think it's going in the wrong direction. IMHO, anyone
who wants to be doing cross-database queries should be using schemas
instead, and if that's not workable for some reason, then we should
improve the schema implementation until it becomes workable. I think
that the target use case for separate databases ought to be
multi-tenancy, but what is needed there is actually more isolation
(e.g. wrt/role names, cluster-wide visibility of pg_database contents,
etc.), not less.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2011-10-21 17:59:10 | Re: Synchronized snapshots versus multiple databases |
Previous Message | Robert Haas | 2011-10-21 17:41:51 | Re: [PATCH] Log crashed backend's query v3 |