Re: BUG #16373: Behavior of Temporary table creation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hritik122(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16373: Behavior of Temporary table creation
Date: 2020-04-17 13:34:09
Message-ID: 19190.1587130449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

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