diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-03 17:08:34 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-03 17:08:34 +0000 |
| commit | acfce502ba1f79ff48c9376a4c113ee06b2674b8 (patch) | |
| tree | f10f42b5eff0e376f9738667d9efb868745c7d3c /src/include/storage/fd.h | |
| parent | 5d429f8d88333d42072c371716d0345e12200fbc (diff) | |
| download | postgresql-acfce502ba1f79ff48c9376a4c113ee06b2674b8.tar.gz | |
Create a GUC parameter temp_tablespaces that allows selection of the
tablespace(s) in which to store temp tables and temporary files. This is a
list to allow spreading the load across multiple tablespaces (a random list
element is chosen each time a temp object is to be created). Temp files are
not stored in per-database pgsql_tmp/ directories anymore, but per-tablespace
directories.
Jaime Casanova and Albert Cervera, with review by Bernd Helmle and Tom Lane.
Diffstat (limited to 'src/include/storage/fd.h')
| -rw-r--r-- | src/include/storage/fd.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/storage/fd.h b/src/include/storage/fd.h index fe7419a3d3..bb5772f64d 100644 --- a/src/include/storage/fd.h +++ b/src/include/storage/fd.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.57 2007/01/05 22:19:57 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/fd.h,v 1.58 2007/06/03 17:08:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -59,9 +59,8 @@ extern int max_files_per_process; */ /* Operations on virtual Files --- equivalent to Unix kernel file ops */ -extern File FileNameOpenFile(FileName fileName, int fileFlags, int fileMode); extern File PathNameOpenFile(FileName fileName, int fileFlags, int fileMode); -extern File OpenTemporaryFile(bool interXact); +extern File OpenTemporaryFile(bool interXact, Oid tblspcOid); extern void FileClose(File file); extern void FileUnlink(File file); extern int FileRead(File file, char *buffer, int amount); |
