pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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: Mon, 27 Sep 1999 21:35:36 -0400 (EDT)
Message-ID: <199909280135.VAA21707@candle.pha.pa.us> (raw)
In-Reply-To: <27649.938472335@sss.pgh.pa.us>

> Bruce Momjian <maillist@candle.pha.pa.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@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



view thread (12+ messages)  latest in thread

Message-ID: <199909280135.VAA21707@candle.pha.pa.us>
Permalink:  ../199909280135.VAA21707@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199909280135.VAA21707@candle.pha.pa.us

 · 

reply

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: <199909280135.VAA21707@candle.pha.pa.us>
  References: <27649.938472335@sss.pgh.pa.us> <199909280135.VAA21707@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