From: | Mike Mascari <mascarm(at)mascari(dot)com> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re: [SQL] aliases break my query |
Date: | 2000-05-27 01:45:07 |
Message-ID: | 392F28A3.7EB67B84@mascari.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
Bruce Momjian wrote:
>
> > "Zeugswetter Andreas" <andreas(dot)zeugswetter(at)telecom(dot)at> writes:
> > > I think we could get agreement to not allow implicit from entries
> > > if there is a from clause in the statement, but allow them if a from clause
> > > is missing altogether. The patch did not distinguish the two cases.
> >
> > Hmm, that's a thought. Taking it a little further, how about this:
> >
> > "Emit a notice [or error if you insist] when an implicit FROM item is
> > added that refers to the same underlying table as any existing FROM
> > item."
> >
> > 95% of the complaints I can remember seeing were from people who got
> > confused by the behavior of "FROM table alias" combined with a reference
> > like "table.column". Seems to me the above rule would catch this case
> > without being obtrusive in the useful cases. Comments?
>
> Yes, I even added a define called FROM_WARN. It was disabled, and never
> enabled. When can we enable it?
How about a SET variable which allows PostgreSQL to reject any
queries which are not entirely within the specificaton; kind of
like -ansi -pedantic with gcc? Perhaps that's quite a bit of
work, but it seems quite valuable for developing portable
applications...Of course dependency on PostgreSQL extensions
isn't a bad thing either ;-)
Mike Mascari
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 2000-05-27 02:04:49 | PostgreSQL v7.0 branched ... |
Previous Message | Lamar Owen | 2000-05-27 01:38:27 | Re: [GENERAL] SPI & file locations |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-05-27 04:06:54 | Re: Re: [SQL] aliases break my query |
Previous Message | Bruce Momjian | 2000-05-26 23:43:12 | Re: Re: [SQL] aliases break my query |