From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Howie <caffeine@toodarkpark.org>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] table aliasing problem with 6.5...
Date: Tue, 28 Sep 1999 13:46:43 -0400 (EDT)
Message-ID: <199909281746.NAA22309@candle.pha.pa.us> (raw)
In-Reply-To: <920.938533175@sss.pgh.pa.us>
> Bruce Momjian <maillist@candle.pha.pa.us> writes:
> > I just looked at it, and I woild be required to loop up through the
> > pstate->parentParseState counting how many times I can continue going
> > up, and creating an elog string on the fly to print. Doesn't seem worth
> > it, does it?
>
> It's probably worth saying "in subquery" or not, but if you don't feel
> like determining the exact depth then never mind the sub-subquery bit...
>
> regards, tom lane
>
Good idea. I have:
---------------------------------------------------------------------------
test=> select pg_language.*;
NOTICE: Adding missing FROM-clause entry for table pg_language
lanname |lanispl|lanpltrusted|lanplcallfoid|lancompiler
--------+-------+------------+-------------+--------------
internal|f |f | 0|n/a
lisp |f |f | 0|/usr/ucb/liszt
C |f |f | 0|/bin/cc
sql |f |f | 0|postgres
(4 rows)
test=> select * from pg_language a where lanname in (select pg_language.lanname);
NOTICE: Adding missing FROM-clause entry in subquery for table pg_language
lanname |lanispl|lanpltrusted|lanplcallfoid|lancompiler
--------+-------+------------+-------------+--------------
internal|f |f | 0|n/a
lisp |f |f | 0|/usr/ucb/liszt
C |f |f | 0|/bin/cc
sql |f |f | 0|postgres
(4 rows)
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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: maillist@candle.pha.pa.us, tgl@sss.pgh.pa.us, caffeine@toodarkpark.org, pgsql-sql@hub.org
Subject: Re: [SQL] table aliasing problem with 6.5...
In-Reply-To: <199909281746.NAA22309@candle.pha.pa.us>
References: <920.938533175@sss.pgh.pa.us> <199909281746.NAA22309@candle.pha.pa.us>
* 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