pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Temporary files directory
6+ messages / 5 participants
[nested] [flat]

* Temporary files directory
@ 2001-01-22 12:42  Robert.Farrugia@go.com.mt
  0 siblings, 1 reply; 6+ messages in thread

From: Robert.Farrugia@go.com.mt @ 2001-01-22 12:42 UTC (permalink / raw)
  To: pgsql-admin

Is it possible to tell postgres where to create the temporary files
(especially during clustering and re-indexing) ?  Since I have very large
tables, there is not enough space on the same partition to do clsutering.

Additionally, is it possible to create a database than spans on more than
one partition or harddisk under Linux ?

Thanks
Robert




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

* Temporary files directory
@ 2001-01-23 10:16  Robert.Farrugia@go.com.mt
  0 siblings, 1 reply; 6+ messages in thread

From: Robert.Farrugia@go.com.mt @ 2001-01-23 10:16 UTC (permalink / raw)
  To: pgsql-admin


Is it possible to tell postgres where to create the temporary files
(especially during clustering and re-indexing) ?  Since I have very large
tables, there is not enough space on the same partition to do clsutering.

Additionally, is it possible to create a database than spans on more than
one partition or harddisk under Linux ?

Thanks
Robert




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

* Re: Temporary files directory
@ 2001-01-23 16:38  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Robert.Farrugia@go.com.mt
  0 siblings, 2 replies; 6+ messages in thread

From: Tom Lane @ 2001-01-23 16:38 UTC (permalink / raw)
  To: Robert.Farrugia@go.com.mt; +Cc: pgsql-admin

Robert.Farrugia@go.com.mt writes:
> Is it possible to tell postgres where to create the temporary files
> (especially during clustering and re-indexing) ?

Not at present.

> Additionally, is it possible to create a database than spans on more than
> one partition or harddisk under Linux ?

Right now, the only way to do this is to manually move individual files
around and then establish symlinks to them from where they were in the
database directory.  While this works, it's pretty darn tedious to
maintain, especially for large tables that might contain many segments;
and you more or less have to shut down the database while moving files
around, too.  We have plans to create a more useful "tablespace"
administration capability in the future.

What I'd recommend in the short term is that you use a filesystem
implementation that allows a logical filesystem to span multiple
physical disks.  My preferred OS, HPUX, can do this easily; I believe
the same thing can be done with some Linux filesystems but don't know
the details.  (Any help out there?)

			regards, tom lane



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

* Re: Temporary files directory
@ 2001-01-23 17:04  Ragnar Kjørstad <postgres@ragnark.vestdata.no>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 6+ messages in thread

From: Ragnar Kjørstad @ 2001-01-23 17:04 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Robert.Farrugia@go.com.mt; pgsql-admin

On Tue, Jan 23, 2001 at 11:38:55AM -0500, Tom Lane wrote:
> > Additionally, is it possible to create a database than spans on more than
> > one partition or harddisk under Linux ?
> 
> Right now, the only way to do this is to manually move individual files
> around and then establish symlinks to them from where they were in the
> database directory.  While this works, it's pretty darn tedious to
> maintain, especially for large tables that might contain many segments;
> and you more or less have to shut down the database while moving files
> around, too.  We have plans to create a more useful "tablespace"
> administration capability in the future.
> 
> What I'd recommend in the short term is that you use a filesystem
> implementation that allows a logical filesystem to span multiple
> physical disks.  My preferred OS, HPUX, can do this easily; I believe
> the same thing can be done with some Linux filesystems but don't know
> the details.  (Any help out there?)

It's not really a filesystem issue, but a volume-manager issue. 
On linux you can use LVM or md to create devices that span multiple
disks. With LVM you can even add more disks and grow your devices
without stoping your databases! :-)




-- 
Ragnar Kjørstad
Big Storage



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

* Re: Temporary files directory
@ 2001-01-23 17:46  Oliver Elphick <olly@lfix.co.uk>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 6+ messages in thread

From: Oliver Elphick @ 2001-01-23 17:46 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Robert.Farrugia@go.com.mt; pgsql-admin

Tom Lane wrote:
  >What I'd recommend in the short term is that you use a filesystem
  >implementation that allows a logical filesystem to span multiple
  >physical disks.  My preferred OS, HPUX, can do this easily; I believe
  >the same thing can be done with some Linux filesystems but don't know
  >the details.  (Any help out there?)

Linux kernel 2.4 supports Logical Volumes. As in HP/UX, this enables a
logical partition to be assembled from multiple partitions on multiple
disks.  

I haven't tried it yet, though.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Look not every man on his own interests, but every man
      also on the things of others. Let this mind be in you,
      which was also in Christ Jesus"             
                                Philippians 2:4,5 





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

* Re: Temporary files directory
@ 2001-01-24 10:13  Stefan Huber <schweinsaug@crosswinds.net>
  parent: Robert.Farrugia@go.com.mt
  0 siblings, 0 replies; 6+ messages in thread

From: Stefan Huber @ 2001-01-24 10:13 UTC (permalink / raw)
  To: pgsql-admin


>Is it possible to tell postgres where to create the temporary files
>(especially during clustering and re-indexing) ?  Since I have very large
>tables, there is not enough space on the same partition to do clsutering.


What we did, was outsourcing the largest files to other partitions, and then applying a link to them. But I don't know, how long this can go well :)

This is at least an temporary solution, maybe there's some more sophisticated possibility.

>Additionally, is it possible to create a database than spans on more than
>one partition or harddisk under Linux ?

Well, that's what links imitate.

Hope that helped, and that there _is_ a better solution to this problem.

Stefan




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


end of thread, other threads:[~2001-01-24 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22 12:42 Temporary files directory Robert.Farrugia@go.com.mt
2001-01-24 10:13 ` Stefan Huber <schweinsaug@crosswinds.net>
2001-01-23 10:16 Temporary files directory Robert.Farrugia@go.com.mt
2001-01-23 16:38 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-01-23 17:04   ` Ragnar Kjørstad <postgres@ragnark.vestdata.no>
2001-01-23 17:46   ` Oliver Elphick <olly@lfix.co.uk>

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