Temp tables

Started by BKover 7 years ago3 messagesgeneral
Jump to latest
#1BK
kbn98406@gmail.com

Hi,

What happens if we create and insert/update the data in TEMP tables , Does
that data really gets inserted at disk level or at buffer level and what
happens to this data after completion of the transaction ?

Thanks
Banu

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: BK (#1)
Re: Temp tables

On Sunday, December 9, 2018, bhargav kamineni <kbn98406@gmail.com> wrote:

What happens if we create and insert/update the data in TEMP tables , Does
that data really gets inserted at disk level or at buffer level

Disk

and what happens to this data after completion of the transaction ?

Your choice. See “on conflict” clause of create temp table command.

David J.

#3Laurenz Albe
laurenz.albe@cybertec.at
In reply to: David G. Johnston (#2)
Re: Temp tables

David G. Johnston wrote:

and what happens to this data after completion of the transaction ?

Your choice. See “on conflict” clause of create temp table command.

You mean the ON COMMIT clause.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com