Received: from mail0.crcom.net (mail0.crcom.net [208.220.74.20]) by postgresql.org (Postfix) with ESMTP id 6BB45475F29 for ; Thu, 7 Mar 2002 13:46:26 -0500 (EST) Received: (qmail 10521 invoked from network); 7 Mar 2002 18:46:19 -0000 Received: from unknown (HELO h233) (65.198.128.97) by 0 with SMTP; 7 Mar 2002 18:46:19 -0000 Message-ID: <013901c1c608$4c2adcc0$0908a8c0@kttk.net> Reply-To: "Len Morgan" From: "Len Morgan" To: References: <200203071758.g27HwRw14345@candle.pha.pa.us> Subject: Re: Temp Tables Date: Thu, 7 Mar 2002 12:45:47 -0600 Organization: KTTK, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Archive-Number: 200203/644 X-Sequence-Number: 22018 > mdb wrote: > > Hello, > > > > I am running a client server app and am using temp tables to do some > > data manipulation. However, Postgresql seems to prevent multiple temp > > tables from being created with the same name. The temp tables are > > created by seperate connections to the database, but this does not > > seem to matter. Is this correct? Do I need to make the names unique > > by using a user id? Am I doing something wrong? I am using > > Postgresql 7.1.3 and odbc 7.1.9. > > Temp tables can be created with identical names in different > connections. I have no idea why it is failing. Are you trying to > create the same temp table in the same session? Could you show us the > failure? > I believe (and I'm no expert) that the table names must be unique by user so if your client/server app uses the same generic user name (like your web server's user for example), I don't think the particular session matters. It's a user_name+temp_table_name thing. But I could be wrong. :-) Len Morgan