]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rework temp_tablespaces patch so that temp tablespaces are assigned separately
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jun 2007 19:19:57 +0000 (19:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jun 2007 19:19:57 +0000 (19:19 +0000)
commit24ee8af57378ee3b065f6a0d62aeb5a5c7313284
treea6cac1fd93221aad889f8f869d8fdbc97ff8834b
parent2d9d7a6bf56801e38ba93e22346a5ef3b9ac73ea
Rework temp_tablespaces patch so that temp tablespaces are assigned separately
for each temp file, rather than once per sort or hashjoin; this allows
spreading the data of a large sort or join across multiple tablespaces.
(I remain dubious that this will make any difference in practice, but certain
people insisted.)  Arrange to cache the results of parsing the GUC variable
instead of recomputing from scratch on every demand, and push usage of the
cache down to the bottommost fd.c level.
14 files changed:
doc/src/sgml/config.sgml
src/backend/commands/tablespace.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeHashjoin.c
src/backend/storage/file/buffile.c
src/backend/storage/file/fd.c
src/backend/utils/sort/logtape.c
src/backend/utils/sort/tuplesort.c
src/backend/utils/sort/tuplestore.c
src/include/commands/tablespace.h
src/include/executor/hashjoin.h
src/include/executor/nodeHashjoin.h
src/include/storage/buffile.h
src/include/storage/fd.h