Re: Changing the concept of a DATABASE

Поиск
Список
Период
Сортировка
Искать
От
Florian Pflug
Тема
Re: Changing the concept of a DATABASE
Дата
в 09:23:50
Msg-id
638A2D82-C15B-47A6-80A2-2F5381DC0620@phlo.org
Ответ на
Список
Дерево обсуждения
Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Per-Database Roles Stephen Frost <sfrost@snowman.net>
Re: Per-Database Roles Josh Berkus <josh@agliodbs.com>
Re: Per-Database Roles Stephen Frost <sfrost@snowman.net>
Re: Per-Database Roles Josh Berkus <josh@agliodbs.com>
Re: Per-Database Roles Florian Pflug <fgp@phlo.org>
Re: Per-Database Roles Florian Pflug <fgp@phlo.org>
Re: Per-Database Roles Christopher Browne <cbbrowne@gmail.com>
Re: Per-Database Roles Thom Brown <thom@linux.com>
Re: Per-Database Roles Stephen Frost <sfrost@snowman.net>
Re: Per-Database Roles Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-Database Roles Florian Pflug <fgp@phlo.org>
Re: Per-Database Roles Thom Brown <thom@linux.com>
Re: Per-Database Roles Florian Pflug <fgp@phlo.org>
Re: Per-Database Roles Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-Database Roles Stephen Frost <frost.stephen.p@gmail.com>
Re: Per-Database Roles Stephen Frost <frost.stephen.p@gmail.com>
Re: Per-Database Roles Robert Haas <robertmhaas@gmail.com>
Re: Per-Database Roles Peter Eisentraut <peter_e@gmx.net>
Re: Per-Database Roles Robert Haas <robertmhaas@gmail.com>
Re: Per-Database Roles Bruce Momjian <bruce@momjian.us>
Re: Per-Database Roles Robert Haas <robertmhaas@gmail.com>
Re: Per-Database Roles Stephen Frost <sfrost@snowman.net>
Re: Per-Database Roles Tom Lane <tgl@sss.pgh.pa.us>
Re: Per-Database Roles Bruce Momjian <bruce@momjian.us>
Re: Per-Database Roles Robert Haas <robertmhaas@gmail.com>
Re: Changing the concept of a DATABASE Florian Pflug <fgp@phlo.org>
Re: Changing the concept of a DATABASE Robert Haas <robertmhaas@gmail.com>
Re: Changing the concept of a DATABASE Andrew Dunstan <andrew@dunslane.net>
Re: Changing the concept of a DATABASE Robert Haas <robertmhaas@gmail.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE Daniel Farina <daniel@heroku.com>
Re: Changing the concept of a DATABASE Robert Haas <robertmhaas@gmail.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE José Luis Tallón <jltallon@nosys.es>
Re: Changing the concept of a DATABASE Florian Pflug <fgp@phlo.org>
Re: Changing the concept of a DATABASE José Luis Tallón <jltallon@nosys.es>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE José Luis Tallón <jltallon@nosys.es>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Simon Riggs <simon@2ndQuadrant.com>
Re: Changing the concept of a DATABASE "David E. Wheeler" <david@justatheory.com>
Re: Changing the concept of a DATABASE Josh Berkus <josh@agliodbs.com>
Re: Changing the concept of a DATABASE Andres Freund <andres@anarazel.de>
Re: Changing the concept of a DATABASE Daniel Farina <daniel@heroku.com>
Re: Changing the concept of a DATABASE "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: Changing the concept of a DATABASE Susanne Ebrecht <susanne@2ndquadrant.com>
Re: Changing the concept of a DATABASE Tom Lane <tgl@sss.pgh.pa.us>
Re: Changing the concept of a DATABASE Susanne Ebrecht <susanne@2ndquadrant.com>
Re: Changing the concept of a DATABASE Florian Pflug <fgp@phlo.org>
Re: Changing the concept of a DATABASE Peter Eisentraut <peter_e@gmx.net>
Re: Changing the concept of a DATABASE Robert Haas <robertmhaas@gmail.com>
Re: Changing the concept of a DATABASE Susanne Ebrecht <susanne@2ndquadrant.com>
Re: Changing the concept of a DATABASE Florian Pflug <fgp@phlo.org>
On May22, 2012, at 13:47 , Simon Riggs wrote:
> On 22 May 2012 12:35, Florian Pflug  wrote:
>>> * Allow users to access tables in >1 database easily, with appropriate rights.
>> 
>> That one I'm very sceptical about. In the long run, I think we want better
>> separation of databases, not less, and this requirement carries a huge risk
>> of standing in the way of that. Also, I think that once we integrate the postgres
>> FDW into core (that's the plan in the long run, right?), we're going to get
>> a good approximation of that essentially for free.
> 
> It's a poor approximation of it, free or not.
> 
> If it actually worked well, I'd be happy. It doesn't. No proper
> transaction support, no session pool, poor planning etc etc. At best
> its a band-aid, not something sufficiently good to recommend for
> general production use.

These all sound fixable, though. 

> FDWs are very good but aren't good enough for intra-database usage.

OTOH, cross-database queries would by design be limited to databases
within one cluster, whereas a FDW-based solution would not. I don't really see
the different between telling people "put all your tables into one database
if you need to access them from within one session" and "put all your databases
on one server if you need to access them from within one session".

Plus, the more tightly different databases in the same cluster are coupled,
the more people will setup one cluster per database for performance reasons.
Then, when they discovered they need inter-database queries after all, we'll
again have to tell them "well, then don't set things up the way you have".

If we want to make it easier for people to migrate from multiple databases
to a single database with multiple schemas, maybe we should look into allowing
nested schemas? AFAIK, the main reason not to do that are ambiguities in the
meaning of identifiers, which cross-database queries would have to deal with
also.

best regards,
Florian Pflug


В списке pgsql-hackers по дате отправления
От: José Luis Tallón
Дата:
От: Robert Haas
Дата:
FAQ