Re: Fix for tablename in targetlist

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix for tablename in targetlist
Date: 2001-06-13 02:31:39
Message-ID: 200106130231.f5D2VdR22469@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > You are suggesting throwing an error as soon as an idend appears as a
> > relation. I don't know enough about the code to be sure that is OK. I
> > realize the regression tests pass.
>
> Removing the said code and not applying your patch allows the parser to
> recognise that pg_class is not an attribute of pg_class relation. There
> does not seem to be any side effect from removing this code, though I
> would like to see if someone can find fault in that. If there is no
> problem, then -- in light of the discussion on this a month or so ago --
> SELECT pg_class FROM pg_class should be be considered 'select the column
> pg_class from the pg_class relation' which is the same as SELECT
> nosuchcolumn FROM pg_class. Isn't this the most effective way to solve the
> problem then?

Uh..., I don't know.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2001-06-13 02:33:39 Re: Fix for tablename in targetlist
Previous Message Bruce Momjian 2001-06-13 01:43:13 Re: Australian timezone configure option