pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <maillist@candle.pha.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 18:45:35 -0400
Message-ID: <27649.938472335@sss.pgh.pa.us> (raw)
In-Reply-To: <199909271744.NAA09308@candle.pha.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?

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 :-(

			regards, tom lane



view thread (12+ messages)  latest in thread

Message-ID: <27649.938472335@sss.pgh.pa.us>
Permalink:  ../27649.938472335@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27649.938472335@sss.pgh.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: tgl@sss.pgh.pa.us, maillist@candle.pha.pa.us, caffeine@toodarkpark.org, pgsql-sql@hub.org
  Subject: Re: [SQL] table aliasing problem with 6.5...
  In-Reply-To: <27649.938472335@sss.pgh.pa.us>
  References: <199909271744.NAA09308@candle.pha.pa.us> <27649.938472335@sss.pgh.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