Re: Fix for tablename in targetlist
От | Bruce Momjian |
---|---|
Тема | Re: Fix for tablename in targetlist |
Дата | |
Msg-id | 200106130231.f5D2VdR22469@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: Fix for tablename in targetlist (Gavin Sherry <swm@linuxworld.com.au>) |
Список | 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@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: