Re: horizontal sharding - Mailing list pgsql-general

From Scott Marlowe
Subject Re: horizontal sharding
Date
Msg-id dcc563d10906151149v6bc605cn6b13708b926063f5@mail.gmail.com
Whole thread Raw
In response to Re: horizontal sharding  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
On Mon, Jun 15, 2009 at 11:36 AM, John R Pierce<pierce@hogranch.com> wrote:
> Jim Mlodgenski wrote:
>>
>>
>>    also is it possible to paritition without changing client code
>>
>> Yes, but it depends on the SQL in your client code. If you are just using
>> simple SQL with no stored functions, you should be able to slip in either
>> solution without changing the client code.
>
> what about queries that need to do joins or aggregate reporting across the
> partitions?!?  I can't see how that could be done transparently short of
> something like Oracle RAC.

If you use inheritance and therefore put the child tables on the same
server, it's invisible to the client that the table is partitioned.
Make sure you've got constraint_exclusion turned on.

pgsql-general by date:

Previous
From: AJAY A
Date:
Subject: Amazon EC2 | Any recent developments
Next
From: David Kerr
Date:
Subject: Re: Amazon EC2 | Any recent developments