Re: Fix for tablename in targetlist - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Fix for tablename in targetlist
Date
Msg-id Pine.LNX.4.30.0105191005500.758-100000@peter.localdomain
Whole thread Raw
In response to Fix for tablename in targetlist  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Fix for tablename in targetlist
Re: Fix for tablename in targetlist
List pgsql-hackers
Bruce Momjian writes:

> This patch fixes the problem by generating an error in the parser:
>
>     test=> select pg_class from pg_class;
>     ERROR:  You can't use a relation alone in a target list.

Maybe it's the parser that's getting it wrong.  What if pg_class has a
column called pg_class?

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Problems with avg on interval data type
Next
From: Kaare Rasmussen
Date:
Subject: Re: Plans for solving the VACUUM problem