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

From Tom Lane
Subject Re: fun fact about temp tables
Date
Msg-id 5191.1470408704@sss.pgh.pa.us
Whole thread Raw
In response to fun fact about temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
Responses Re: fun fact about temp tables  (Grigory Smolkin <g.smolkin@postgrespro.ru>)
Re: fun fact about temp tables  (Alex Ignatov <a.ignatov@postgrespro.ru>)
List pgsql-general
Grigory Smolkin <g.smolkin@postgrespro.ru> 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


pgsql-general by date:

Previous
From: Grigory Smolkin
Date:
Subject: fun fact about temp tables
Next
From: Grigory Smolkin
Date:
Subject: Re: fun fact about temp tables