Re: BUG #16373: Behavior of Temporary table creation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16373: Behavior of Temporary table creation
Date
Msg-id 19190.1587130449@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16373: Behavior of Temporary table creation  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16373: Behavior of Temporary table creation
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Hi! Have a small doubt I’m hoping you can help me with..simply put, where
> are the temporary tables created? 

> AFAIK, they stay in the memory till the size reaches the temp_buffers limit,
> and then to the storage, for where it is accessed using the temp buffer,

They are accessed through temp buffers, yes, but storage space gets
reserved on-disk immediately whenever the relation is extended.
This is the same as for non-temp tables.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Jehan-Guillaume de Rorthais
Date:
Subject: Re: [BUG] non archived WAL removed during production crash recovery
Next
From: David Kubecka
Date:
Subject: Possibly misleading documentation of Template Patterns for Date/Time Formatting