From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | mgould(at)isstrucksoftware(dot)net |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: problem trying to create a temp table |
Date: | 2012-02-24 13:46:52 |
Message-ID: | 4F4794CC.80407@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 24/02/12 13:36, mgould(at)isstrucksoftware(dot)net wrote:
> How do I access it. I just did that and when I try and access it with a
> ERROR: relation "sessionsetting" does not exist
> LINE 1: select * from "sessionsetting"
=> CREATE SCHEMA foo;
CREATE SCHEMA
=> CREATE TABLE foo.table1 (id int);
CREATE TABLE
=> SET search_path = foo;
SET
=> INSERT INTO table1 VALUES (1),(2),(3);
INSERT 0 3
=> CREATE TEMP TABLE table1 (id int);
CREATE TABLE
=> INSERT INTO table1 VALUES (4),(5),(6);
INSERT 0 3
=> SELECT * FROM table1;
id
----
4
5
6
(3 rows)
=> DROP TABLE table1;
DROP TABLE
=> SELECT * FROM table1;
id
----
1
2
3
(3 rows)
Try "SELECT * FROM pg_namespace" to see the various temp schemas being
created.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2012-02-24 13:48:19 | Re: problem trying to create a temp table |
Previous Message | mgould | 2012-02-24 13:46:06 | Re: problem trying to create a temp table |