pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hritik122@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16373: Behavior of Temporary table creation
Date: Fri, 17 Apr 2020 09:34:09 -0400
Message-ID: <19190.1587130449@sss.pgh.pa.us> (raw)
In-Reply-To: <16373-a2325a5f0e87714c@postgresql.org>
References: <16373-a2325a5f0e87714c@postgresql.org>

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





view thread (5+ messages)  latest in thread

Message-ID: <19190.1587130449@sss.pgh.pa.us>
Permalink:  ../19190.1587130449@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19190.1587130449@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hritik122@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16373: Behavior of Temporary table creation
  In-Reply-To: <19190.1587130449@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox