pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: darcy@druid.net
To: datactrl <quals@bigfoot.com>
Cc: pgsql-sql@postgresql.org
Cc: roelof.sondaar@scania.com
Subject: Re: how do I check if a temporary table exists?
Date: Sat, 24 Mar 2001 07:42:15 -0500 (EST)
Message-ID: <20010324124215.A94771A61@druid.net> (raw)
In-Reply-To: <005f01c0b41c$eb801e60$2400a8c0@hnjack>

Thus spake datactrl
> How do I check if a temporary table exists? Searching pg_tables with a
> temporary table name we chose always fails.

What do you mean?  You know that it exists because you just created it
and the create succeeded.  Can you describe a situation where you need
to know about a temp table and don't already know?

It can't go into the pg_tables table because then it would be visible
to other processes.  Are you perhaps misunderstanding temp tables?  You
cannot see them except from the process that created them.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (4+ messages)  latest in thread

Message-ID: <20010324124215.A94771A61@druid.net>
Permalink:  ../20010324124215.A94771A61@druid.net/
Also on:    postgresql.org/message-id/20010324124215.A94771A61@druid.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-sql@postgresql.org
  Cc: darcy@druid.net, quals@bigfoot.com, roelof.sondaar@scania.com
  Subject: Re: how do I check if a temporary table exists?
  In-Reply-To: <20010324124215.A94771A61@druid.net>
  References: <005f01c0b41c$eb801e60$2400a8c0@hnjack> <20010324124215.A94771A61@druid.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