From: | Francisco Olarte <folarte(at)peoplecall(dot)com> |
---|---|
To: | ousema2003(at)yahoo(dot)fr |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #12679: temprary table not exists when close session and reconnect |
Date: | 2015-01-27 11:11:15 |
Message-ID: | CA+bJJbz65PEVzU4Hz4D0fep-DcM6X10rCL-qAKVizTTXPeZA0g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi:
On Tue, Jan 27, 2015 at 12:02 PM, <ousema2003(at)yahoo(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2015-01-27 11:38:39 | Re: BUG #12675: BIGINT Datatype performance |
Previous Message | ousema2003 | 2015-01-27 11:02:06 | BUG #12679: temprary table not exists when close session and reconnect |