pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #12679: temprary table not exists when close session and reconnect
2+ messages / 2 participants
[nested] [flat]

* BUG #12679: temprary table not exists when close session and reconnect
@ 2015-01-27 11:02  ousema2003@yahoo.fr
  0 siblings, 1 reply; 2+ messages in thread

From: ousema2003@yahoo.fr @ 2015-01-27 11:02 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      12679
Logged by:          temprary table not exists when close session and reconnect
Email address:      ousema2003@yahoo.fr
PostgreSQL version: 9.2.0
Operating system:   linux x86 64  / centos 5.9
Description:        

in fact i created a temprary table as floowing : 
create temp table a_temp(name varchar);

then insert some rows and later when i reconnect with psql program, 

the temp table i created earlier, doesn't exists .

please advice how can i deal with this issue ?


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #12679: temprary table not exists when close session and reconnect
@ 2015-01-27 11:11  Francisco Olarte <folarte@peoplecall.com>
  parent: ousema2003@yahoo.fr
  0 siblings, 0 replies; 2+ messages in thread

From: Francisco Olarte @ 2015-01-27 11:11 UTC (permalink / raw)
  To: ousema2003@yahoo.fr; +Cc: pgsql-bugs

Hi:

On Tue, Jan 27, 2015 at 12:02 PM, <ousema2003@yahoo.fr> wrote:
...

> Logged by:          temprary table not exists when close session and
> reconnect
>
...

> in fact i created a temprary table as floowing :
> create temp table a_temp(name varchar);
>

> then insert some rows and later when i reconnect with psql program,
>
> the temp table i created earlier, doesn't exists .
>
> please advice how can i deal with this issue ?
>

Seems to be working, try ReadingTFM:
http://www.postgresql.org/docs/9.2/static/sql-createtable.html
"TEMPORARY or TEMP

If specified, the table is created as a temporary table. Temporary tables
are automatically dropped at the end of a session, or optionally at the end
of the current transaction...
"

disconnecting/reconnecting puts you into different sesions, table is
dropped. This is what temporary tables are for.


Francisco Olarte.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-01-27 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 11:02 BUG #12679: temprary table not exists when close session and reconnect ousema2003@yahoo.fr
2015-01-27 11:11 ` Francisco Olarte <folarte@peoplecall.com>

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