Hello, everyone! I`ve noticed interesting aspect in temp tables working. It
appears postgres is trying to reserve space on disk for temp
tables even before temp_buffers overflow. test4=# create temp table t(a int, b int); strace: ------------------------------------- open("base/65677/t3_73931", O_RDONLY) = -1 ENOENT (No such file
or directory) ---------------------------------------------------------- test4=# INSERT INTO t (a, b) SELECT NULL, i FROM
generate_series(1,1000) i; open("base/65677/t3_73931_fsm", O_RDWR) = -1 ENOENT (No such file
or directory) test4=# select pg_size_pretty(pg_total_relation_size('t')); pg_size_pretty ---------------- 64 kB (1 row) Postgres filling relation file with nulls page by page. Isn`t that just kind of killing the whole idea of temp tables? -- Grigory Smolkin Postgres Professional: http://www.postgrespro.com The Russian Postgres Company |