problem trying to create a temp table - Mailing list pgsql-general

From
Subject problem trying to create a temp table
Date
Msg-id 20120224062621.c760ddbd7c0975bc4b045766db7d895c.27a80495c2.wbe@email16.secureserver.net
Whole thread Raw
Responses Re: problem trying to create a temp table
List pgsql-general
ALL,
 
Using 9.1.2 on Windows 7 X64 for development.
 
I'm trying to create a temporary table used to store session variables for each user when they login.  I'm moving from SQL Anywhere and they have a CREATE VARIABLE which does this, so I thought a temp table would work fine, especially since each user will have their own copy.
 
CREATE  TEMP TABLE iss.sessionsettings
(
  VarName character varying(20) NOT NULL,
  value character varying(128),
  CONSTRAINT pk_sessionsettings_varname PRIMARY KEY (VarName )
)
WITH (
  OIDS=FALSE
);
ALTER TABLE iss.sessionsettings
  OWNER TO postgres;
 
When I try and run this I get the following error message.
 
ERROR:  cannot create temporary relation in non-temporary schema

********** Error **********
ERROR: cannot create temporary relation in non-temporary schema
SQL state: 42P16
 
What do I need to do to create temporary tables to the schema.  I guess I could create a separate schema for temp tables if needed.
 
 
Best Regards
 
Michael Gould
Intermodal Software Solutions, LLC
904-226-0978

pgsql-general by date:

Previous
From: A B
Date:
Subject: Configuring for very slow I/O
Next
From: Richard Huxton
Date:
Subject: Re: problem trying to create a temp table