From: | Christopher Browne <cbbrowne(at)gmail(dot)com> |
---|---|
To: | Michael Nolan <htfoot(at)gmail(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Darren Duncan <darren(at)darrenduncan(dot)net>, Jeff Davis <pgsql(at)j-davis(dot)com>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>, mike beeper <mbeeper(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] Creating temp tables inside read only transactions |
Date: | 2011-07-11 04:19:12 |
Message-ID: | CAFNqd5XZPD4_WOrz6Kj3eAJUQ9MaFrY6T7LJXgcbrNfC9A7biw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Mon, Jul 11, 2011 at 12:01 AM, Michael Nolan <htfoot(at)gmail(dot)com> wrote:
>
>
> On Fri, Jul 8, 2011 at 10:27 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>
>> But if that's what you want, just don't put your data in different
>> databases in the first place. That's what schemas are for.
>
> Sadly, DBAs don't always have the ability to put all their data in one
> database, even if that is what schemas are for.
>
> The ability to do cross-database (most likely cross-server as well) queries
> would address a lot of real-world problems.
Sure, there's quite a lot of use to that sort of thing.
Once 9.1 is out, with the FDW (Foreign Data Wrapper) concept, it'll
make a lot of sense to add FDW methods for various sorts of access
methods, including accessing other PG instances, cross-server.
We already have a fine mechanism for this; no need to create some
different mechanism out of whole cloth.
Vis-a-vis the attempt to do nested naming, that is "ns1.ns2.table1",
there's a pretty good reason NOT to support that, namely that this
breaks relational handling of tables. PostgreSQL is a *relational*
database system, hence it's preferable for structures to be
relational, as opposed to hierarchical, which is what any of the
suggested nestings are.
Having to write recursive queries just to look for fully qualified
table names is much more of a bug than it is a feature.
--
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"
From | Date | Subject | |
---|---|---|---|
Next Message | 赵伟宇 | 2011-07-11 04:54:02 | Fw: Re: [BUGS] BUG #6099: Does pgcluster support hibernate? |
Previous Message | John R Pierce | 2011-07-11 04:16:10 | Re: [HACKERS] Creating temp tables inside read only transactions |
From | Date | Subject | |
---|---|---|---|
Next Message | Darren Duncan | 2011-07-11 05:08:02 | Re: [HACKERS] Creating temp tables inside read only transactions |
Previous Message | John R Pierce | 2011-07-11 04:16:10 | Re: [HACKERS] Creating temp tables inside read only transactions |