Thread: could not [extend relation|write block N of temporary file|write to hash-join temporary file]
could not [extend relation|write block N of temporary file|write to hash-join temporary file]
From
Alessandra Bilardi
Date:
Hi everyone, I use PostgreSQL 8.1.9 and Debian 4.0 "etch" Linux kernel 2.6.18 (debian precompiled). I install my db and insert one test database without problems. I create schema of this db as sql script. Sql script is a list about create relation table test_table.TEMP__N and set relation and drop relation table where N about from 0 to 300. When I insert sql script with shell command: psql -d test < script.sql > script.log 2> script.err in file error I see 3 error sort: ERROR: could not extend relation 1663/63659/85595: No space left on device ERROR: could not write block 21 of temporary file: No space left on device ERROR: could not write to hash-join temporary file: No space left on device I test all in two server machines: 1) AMD Opteron(tm) Processor 244, 1790.535MHz, 1024MB 2) AMD Opteron(tm) Bi Processor 244, 1804.153MHz, 8192MB First errors begining when sql script inserts: 1) relation about TEMP__100 2) relation about TEMP__227 In any case there is space in device after sql script: 1) Filesystem Dim Used Free Used Mount /dev/md0 953M 254M 699M 27% / tmpfs 503M 0 503M 0% /lib/init/rw udev 10M 88K 10M 1% /dev /dev/md1 5,6G 2,4G 3,2G 43% /var /dev/md2 5,6G 3,5G 2,2G 62% /usr /dev/md3 953M 340K 952M 1% /tmp 2) Filesystem Dim Used Free Used Mount /dev/md0 953M 217M 737M 23% / tmpfs 3,9G 0 3,9G 0% /lib/init/rw udev 10M 88K 10M 1% /dev /dev/md4 133G 67G 66G 51% /era /dev/md3 953M 384K 952M 1% /tmp /dev/md2 5,6G 3,0G 2,7G 54% /usr /dev/md1 5,6G 915M 4,7G 17% /var Can someone help me? Thanks very much for the help in advance. Alessandra Bilardi =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= CRIBI, University of Padova, Italy | http://www.linkedin.com/in/bilardi Via Ugo Bassi, 58/B - 35121 Padova | http://www.alessandrabilardi.com/ Tel 0498276165 -- Fax 0498276159 | bilardi@cribi.unipd.it =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: could not [extend relation|write block N of temporary file|write to hash-join temporary file]
From
Tom Lane
Date:
Alessandra Bilardi <bilardi@cribi.unipd.it> writes: > ERROR: could not write to hash-join temporary file: No space left on device Check your queries. I suspect you've written an incorrectly constrained join that is producing many more rows than you expect. regards, tom lane
Re: could not [extend relation|write block N of temporary file|write to hash-join temporary file]
From
Alessandra Bilardi
Date:
Tom Lane-2 wrote: > > Alessandra Bilardi <bilardi@cribi.unipd.it> writes: >> ERROR: could not write to hash-join temporary file: No space left on >> device > > Check your queries. I suspect you've written an incorrectly constrained > join that is producing many more rows than you expect. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > > Sorry, I reply only Tom Lane: From: Alessandra Bilardi <bilardi@cribi.unipd.it> To: Tom Lane <tgl@sss.pgh.pa.us> Subject: Re: [GENERAL] could not [extend relation|write block N of temporary file|write to hash-join temporary file] Date: Tue, 7 Aug 2007 11:23:55 +0200 Dear Tom, I attach you the sql script and file.log and file.err obtain with command: psql -d sgdlite < sgdlite_mart.sql > sgdlite_mart.log 2> sgdlite_mart.err first server machine is:AMD Opteron(tm) Processor 244, 1790.535MHz, 1024MB second server machine is:AMD Opteron(tm) Bi Processor 244, 1804.153MHz, 8192MB I had "could not write to hash-join temporary file" one time with second server machine. Thanks for you help. Regards, Alessandra Bilardi http://www.nabble.com/file/p12884512/sgdlite_mart.sql sgdlite_mart.sql http://www.nabble.com/file/p12884512/sgdlite_mart1.err sgdlite_mart1.err http://www.nabble.com/file/p12884512/sgdlite_mart1.log sgdlite_mart1.log http://www.nabble.com/file/p12884512/sgdlite_mart2.err sgdlite_mart2.err http://www.nabble.com/file/p12884512/sgdlite_mart2.log sgdlite_mart2.log -- View this message in context: http://www.nabble.com/could-not--extend-relation%7Cwrite-block-N-of-temporary-file%7Cwrite-to-hash-join-temporary-file--tf4216684.html#a12884512 Sent from the PostgreSQL - general mailing list archive at Nabble.com.