Re: AW: New warning code for missing FROM relations

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>, "'Peter Eisentraut'" <peter_e(at)gmx(dot)net>
Cc: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, "'PostgreSQL-development'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AW: New warning code for missing FROM relations
Date: 2000-06-05 11:57:32
Message-ID: 3.0.5.32.20000605215732.00ab4d00@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 10:02 5/06/00 +0200, Zeugswetter Andreas SB wrote:
>
>> > > SELECT *
>> > > INTO TABLE tmp1
>> > > FROM tmp
>> > > WHERE onek.unique1 < 2;
>> > > NOTICE: Adding missing FROM-clause entry for table onek
>>
>
>Yes, only Bruce and I are of the opinion that it *is* an Error, and I guess
>we want some consensus.
>The notice is imho of the sort: notice this syntax is going to be disallowed
>soon.
>

FWIW, I think it's an error too. For me, this situation is *far* more
likely to result from typos than intention, and I want to be told when it
happens. I also want to be prevented from doing it.

I take it that there is no chance of a compile-time or runtime option to
disallow this kind of thing in all cases?

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: +61-03-5367 7422 | _________ \
Fax: +61-03-5367 7430 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2000-06-05 14:12:07 Re: Commit messages list
Previous Message Bruce Momjian 2000-06-05 10:58:27 INSTALL/install.sgml file