| 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 01:35:36 |
| Message-ID: | 199909280135.VAA21707@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:
> > OK, I have added an elog(NOTICE) for this behavior:
>
> > test=> select * from 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 pg_language.*;
> --> NOTICE: Auto-creating query reference to 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)
>
> > I am interested in comments about my wording, and this behavour.
>
> I think this is a fine idea, but that wording might not be much help
> to novices. Maybe "Adding missing FROM-clause entry for pg_language",
> or some such?
Yes, I like that much better. Let me make the change.
> In a situation where you've got subselects, it may not be immediately
> obvious which FROM list the entry got added to. I can't think of any
> simple way of identifying that, however :-(
--
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 | Thomas Lockhart | 1999-09-28 02:42:28 | Re: [SQL] IFNULL - problem |
| Previous Message | Clark C. Evans | 1999-09-27 23:22:14 | OpenX/A and nested transactions |