Skip site navigation (1) Skip section navigation (2)

Temporary table error messages different to perm. tables

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: pgsql-bugs(at)hub(dot)org
Subject: Temporary table error messages different to perm. tables
Date: 2000-08-04 14:32:34
Message-ID: 3.0.5.32.20000805003234.028a4cb0@mail.rhyme.com.au (view raw or flat)
Thread:
Lists: pgsql-bugs
The following seems a little strange (in 7.02/Linux):

zzz=# create table t1(f1 integer);
zzz=# create temporary table t2(f1 integer, f2 integer);
zzz=# Update t1 Set f1 =  (select x.junk from t2 x where x.junk2 = t1.f1);
ERROR:  Unable to locate type name 't2' in catalog

zzz=# drop table t2;
zzz=# create table t2(f1 integer, f2 integer);
zzz=# Update t1 Set f1 =  (select x.junk from t2 x where x.junk2 = t1.f1);
ERROR:  No such attribute or function 'junk'

ie. I get different errors for a temporary table...

----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.C.N. 008 659 498)             |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 0500 83 82 82         |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/

Responses

pgsql-bugs by date

Next:From: Philip WarnerDate: 2000-08-04 16:27:03
Subject: ExecEvalExpr: unknown expression type 501 from coalesce
Previous:From: Philip WarnerDate: 2000-08-04 13:26:07
Subject: Re: pg_dump problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group