Re: fun fact about temp tables - Mailing list pgsql-general

From Grigory Smolkin
Subject Re: fun fact about temp tables
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: fun fact about temp tables  (Tom Lane <[email protected]>)
Responses Re: fun fact about temp tables
Re: fun fact about temp tables
List pgsql-general

Thank you for your answer.

But it`s temporary table so it`s equal to saying 'I don`t care about this data' and I can get 'out of disk space' regardless of using temporary tables.

What are we winning here?

On 08/05/2016 05:51 PM, Tom Lane wrote:
Grigory Smolkin <[email protected]> writes:
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.
Sure.  Just like it reserves space for ordinary tables right away,
long before there's any need to push the data out of shared_buffers.
Otherwise, you might find yourself having to throw an "out of disk
space" error after having already committed the relevant INSERTs.
		regards, tom lane

-- 
Grigory Smolkin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: fun fact about temp tables
Next
From: Alex Ignatov
Date:
Subject: Re: fun fact about temp tables