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

From Tom Lane
Subject Re: Fix for tablename in targetlist
Date
Msg-id 7507.990318213@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix for tablename in targetlist  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> No really, I don't see a point of not enforcing the correct syntax, when
> adding '.*' is all it takes to get the alternative behaviour in a standard
> way.

True, although there's a certain inconsistency in allowing a whole row
to be passed to a function by
select foo(pg_class) from pg_class;

and not allowing the same row to be output by
select pg_class from pg_class;

I don't feel strongly about it though.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: External search engine, advice
Next
From: Tom Lane
Date:
Subject: Re: Fix for tablename in targetlist