Re: Temporary table and dump - Mailing list pgsql-novice

From Albe Laurenz
Subject Re: Temporary table and dump
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50F7346F@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Temporary table and dump  (Emmanuel Quevillon <tuco@pasteur.fr>)
List pgsql-novice
Emmanuel Quevillon wrote:
> I've read from the doc that a temporary table is destroyed when a
> session ends.
> 
> My question is then, is a temporary table saved into a dump if pg_dump
> is launched while the session that created the temporary table is not ended?
> 
> Thus, during the pg_restore, the temporary table is re-created or not?

A temporary table will never be in a database dump.

The temporary table is only visible in the session that created it, and pg_dump
does not create temporary tables.

Yours,
Laurenz Albe

pgsql-novice by date:

Previous
From: Emmanuel Quevillon
Date:
Subject: Temporary table and dump
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Replication DB scenario