Re: Bug in 7.1.3 and 7.2?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Hans-Jürgen Schönig <hs(at)cybertec(dot)at>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bug in 7.1.3 and 7.2?
Date: 2001-11-09 03:57:19
Message-ID: 20011108195511.H55672-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


> test=# select a.*, d.* from a as c, b as d where a.id=b.id;
> NOTICE: Adding missing FROM-clause entry for table "a"
> NOTICE: Adding missing FROM-clause entry for table "b"
> id | id
> ----+----
> 3 | 3
> 3 | 3
> 3 | 3
> 3 | 4
> 3 | 4
> 3 | 4
> (6 rows)
>
> Althoug c and d are aliases for a and b, the two tables are added to the
> list in the from clause. Is this the desired behaviour or is it a bug?

AFAIK this is the desired behavior. Once you've aliased the tables
you can't go back, there is no "a" or "b" any longer, just "c" and "d"
from those entries.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-11-09 04:26:28 Re: Bug in 7.1.3 and 7.2?
Previous Message Frank McKenney 2001-11-08 23:09:59 Perl script failure => Postgres 7.1.2 database corruption