pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to relocate temporary files
2+ messages / 2 participants
[nested] [flat]

* How to relocate temporary files
@ 2004-10-26 13:54 rray@tcmail.mstc.state.ms.us
  2004-10-29 17:55 ` Re: How to relocate temporary files Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: rray@tcmail.mstc.state.ms.us @ 2004-10-26 13:54 UTC (permalink / raw)
  To: pgsql-admin

I have a database that's about 18GBs.
[base]# du -hs 17165
18G     17165

Occasionally someone runs a query and they get
"could not write block 460593 of temporary file: No space left on device"
At present the filesystem for the database has about 3GB free.

I'd like to give the temporary files a filesystem of their own.
What would be the preferred method?

Thanks
Richard Ray



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

* Re: How to relocate temporary files
  2004-10-26 13:54 How to relocate temporary files rray@tcmail.mstc.state.ms.us
@ 2004-10-29 17:55 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2004-10-29 17:55 UTC (permalink / raw)
  To: rray@tcmail.mstc.state.ms.us; +Cc: pgsql-admin

rray@tcmail.mstc.state.ms.us writes:
> I'd like to give the temporary files a filesystem of their own.
> What would be the preferred method?

Change the subdirectory $PGDATA/base/<yourdb>/pgsql_tmp/ into a symlink
to someplace on another filesystem.

			regards, tom lane



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


end of thread, other threads:[~2004-10-29 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-10-26 13:54 How to relocate temporary files rray@tcmail.mstc.state.ms.us
2004-10-29 17:55 ` Tom Lane <tgl@sss.pgh.pa.us>

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