| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Howie <caffeine(at)toodarkpark(dot)org>, pgsql-sql(at)hub(dot)org |
| Subject: | Re: [SQL] table aliasing problem with 6.5... |
| Date: | 1999-09-28 17:46:43 |
| Message-ID: | 199909281746.NAA22309@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
> Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Saltsgaver, Scott | 1999-09-28 20:40:43 | Reporting errors when a rule fails. |
| Previous Message | Tom Lane | 1999-09-28 15:39:35 | Re: [SQL] table aliasing problem with 6.5... |