Re: Why select * from function doesn't work when function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why select * from function doesn't work when function
Дата
Msg-id 23149.1059057945@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why select * from function doesn't work when function  ("Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>)
Ответы Re: Why select * from function doesn't work when function  ("Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br>)
Список pgsql-hackers
"Francisco Figueiredo Jr." <fxjrlists@yahoo.com.br> writes:
> I just wanted void functions behave like others when called as select * 
> from voidfunction  So I dont have to do select voidfunction. :)

It's not only void functions that fail --- I believe the code will
reject any pseudo-type, which includes several things:

regression=# select typname from pg_type where typtype = 'p';    typname
------------------recordcstringanyanyarrayvoidtriggerlanguage_handlerinternalopaqueanyelement
(10 rows)

regression=#

Some of these might be safe to allow, but some clearly are not.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re:
Следующее
От: Lee Kindness
Дата:
Сообщение: Re: libpq_r