pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
using multiple partitions for a single table
6+ messages / 5 participants
[nested] [flat]

* using multiple partitions for a single table
@ 2001-09-04 20:58 Taher H. Haveliwala <taherh24@yahoo.com>
  2001-09-04 23:55 ` Re: using multiple partitions for a single table David Stanaway <david@netventures.com.au>
  2001-09-06 02:19 ` Re: using multiple partitions for a single table Chad R. Larson <clarso@eldocomp.com>
  2001-09-06 02:57 ` Re: using multiple partitions for a single table Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 3 replies; 6+ messages in thread

From: Taher H. Haveliwala @ 2001-09-04 20:58 UTC (permalink / raw)
  To: pgsql-admin

Is it possible in postgres 7.1.3 to have a single
table span multiple partitions?  Or is using RAID the
only option?

Thanks
Taher


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: using multiple partitions for a single table
  2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
@ 2001-09-04 23:55 ` David Stanaway <david@netventures.com.au>
  2001-09-07 08:47   ` Re: using multiple partitions for a single table Corn <corn@tryit.com>
  2 siblings, 1 reply; 6+ messages in thread

From: David Stanaway @ 2001-09-04 23:55 UTC (permalink / raw)
  To: Taher H. Haveliwala <taherh24@yahoo.com>; +Cc: pgsql-admin


On Wednesday, September 5, 2001, at 06:58  AM, Taher H. Haveliwala wrote:

> Is it possible in postgres 7.1.3 to have a single
> table span multiple partitions?  Or is using RAID the
> only option?
>
> Thanks
> Taher

Hi there,
On Linux, you can use LVM (Logical Volume Manager) to do what you want.

I use LVM for a slightly different reason (So I can allocate disk space 
as needed for different filesystems on the fly), but you can use it for 
RAID like things, but it is more flexible (Esp with XFS filesystem).

I believe there is a similar (Even the same..) project for BSD, and of 
course it is inspired by stuff that commercial unix systems have had for 
a while.

==============================
David Stanaway
Personal: david@stanaway.net
Work: david@netventures.com.au



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: using multiple partitions for a single table
  2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
  2001-09-04 23:55 ` Re: using multiple partitions for a single table David Stanaway <david@netventures.com.au>
@ 2001-09-07 08:47   ` Corn <corn@tryit.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Corn @ 2001-09-07 08:47 UTC (permalink / raw)
  To: pgsql-admin

But can I do that?

e.g.

    There is a customers table that keeps customers record but for two
company: A & B.
    can I store A's customers & B's customers record into two different
directory? That is the mean I know for table partitioning. Is that right?


thx,
Corn





^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: using multiple partitions for a single table
  2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
@ 2001-09-06 02:19 ` Chad R. Larson <clarso@eldocomp.com>
  2 siblings, 0 replies; 6+ messages in thread

From: Chad R. Larson @ 2001-09-06 02:19 UTC (permalink / raw)
  To: David Stanaway <david@netventures.com.au>; Taher H. Haveliwala <taherh24@yahoo.com>; +Cc: pgsql-admin

At 04:55 PM 9/4/2001 , David Stanaway wrote:


>On Wednesday, September 5, 2001, at 06:58  AM, Taher H. Haveliwala wrote:
>
>>Is it possible in postgres 7.1.3 to have a single
>>table span multiple partitions?  Or is using RAID the
>>only option?
>>
>>Thanks
>>Taher

Yes, you can move individual files that are under your $PGDATA directory to 
some other volumes, and then point to them with symbolic links.


>Hi there,
>On Linux, you can use LVM (Logical Volume Manager) to do what you want.

[snip]

>I believe there is a similar (Even the same..) project for BSD, and of 
>course it is inspired by stuff that commercial unix systems have had for a 
>while.

It's called "vinum", and is modeled after (or at least inspired by) the 
Veritas Volume Manager.


>==============================
>David Stanaway
>Personal: david@stanaway.net
>Work: david@netventures.com.au
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>http://www.postgresql.org/search.mpl

         -crl
--
Chad R. Larson (CRL22)    chad@eldocomp.com
   Eldorado Computing, Inc.   602-604-3100
      5353 North 16th Street, Suite 400
        Phoenix, Arizona  85016-3228




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: using multiple partitions for a single table
  2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
@ 2001-09-06 02:57 ` Tom Lane <tgl@sss.pgh.pa.us>
  2001-09-08 07:55   ` Re: using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
  2 siblings, 1 reply; 6+ messages in thread

From: Tom Lane @ 2001-09-06 02:57 UTC (permalink / raw)
  To: Taher H. Haveliwala <taherh24@yahoo.com>; +Cc: pgsql-admin

"Taher H. Haveliwala" <taherh24@yahoo.com> writes:
> Is it possible in postgres 7.1.3 to have a single
> table span multiple partitions?  Or is using RAID the
> only option?

RAID or LVM are the best scenario.  If you're really in a bind you
could manually move table segments to different partitions and set up
symlinks from the original location.  But this is a pain in the neck;
also, I would not recommend doing it while the postmaster is running.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: using multiple partitions for a single table
  2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
  2001-09-06 02:57 ` Re: using multiple partitions for a single table Tom Lane <tgl@sss.pgh.pa.us>
@ 2001-09-08 07:55   ` Taher H. Haveliwala <taherh24@yahoo.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Taher H. Haveliwala @ 2001-09-08 07:55 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

Thanks all for the suggestions.  I've decided to go
with LVM.  It would appear to be the most flexible
solution.

Taher

--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Taher H. Haveliwala" <taherh24@yahoo.com> writes:
> > Is it possible in postgres 7.1.3 to have a single
> > table span multiple partitions?  Or is using RAID
> the
> > only option?
> 
> RAID or LVM are the best scenario.  If you're really
> in a bind you
> could manually move table segments to different
> partitions and set up
> symlinks from the original location.  But this is a
> pain in the neck;
> also, I would not recommend doing it while the
> postmaster is running.
> 
> 			regards, tom lane


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2001-09-08 07:55 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-09-04 20:58 using multiple partitions for a single table Taher H. Haveliwala <taherh24@yahoo.com>
2001-09-04 23:55 ` David Stanaway <david@netventures.com.au>
2001-09-07 08:47   ` Corn <corn@tryit.com>
2001-09-06 02:19 ` Chad R. Larson <clarso@eldocomp.com>
2001-09-06 02:57 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-09-08 07:55   ` Taher H. Haveliwala <taherh24@yahoo.com>

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