Re: HEAD \df doesn't show functions with no arguments

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: HEAD \df doesn't show functions with no arguments
Дата
Msg-id 200504010453.j314rIl04288@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: HEAD \df doesn't show functions with no arguments  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: HEAD \df doesn't show functions with no arguments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > The problem appears to be that proargtypes[0] is now NULL instead
> > of 0.  Here's a simplified version of the \df query:
> 
> >   SELECT proname
> >   FROM pg_catalog.pg_proc p
> >   WHERE p.proargtypes[0] <> 'pg_catalog.cstring'::pg_catalog.regtype
> >     AND p.proname ~ '^foo$';
> 
> We could fix it by changing <> to IS DISTINCT FROM ... but I've never
> been very happy with the idea that \df tries to suppress I/O functions
> anyway.  How do you feel about removing the cstring test altogether?

I like the cstring test.  I don't think users want to see functions they
can't call from SQL, and they will ask about them if we show them.  Now,
if you want \dfS to show them and \df to not show them, that is OK with
me.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: HEAD \df doesn't show functions with no arguments
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: HEAD \df doesn't show functions with no arguments