pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Len Morgan <len-morgan@kttk.net>
To: pgsql-general@postgresql.org
Subject: Re: Temp Tables
Date: Thu, 7 Mar 2002 12:45:47 -0600
Message-ID: <013901c1c608$4c2adcc0$0908a8c0@kttk.net> (raw)
References: <200203071758.g27HwRw14345@candle.pha.pa.us>



> 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




view thread (24+ messages)  latest in thread

Message-ID: <013901c1c608$4c2adcc0$0908a8c0@kttk.net>
Permalink:  ../013901c1c608$4c2adcc0$0908a8c0@kttk.net/
Also on:    postgresql.org/message-id/013901c1c608$4c2adcc0$0908a8c0@kttk.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: len-morgan@kttk.net
  Subject: Re: Temp Tables
  In-Reply-To: <013901c1c608$4c2adcc0$0908a8c0@kttk.net>
  References: <200203071758.g27HwRw14345@candle.pha.pa.us> <013901c1c608$4c2adcc0$0908a8c0@kttk.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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