Re: Mysterious Bus Error with get_fn_expr_argtype()

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Mysterious Bus Error with get_fn_expr_argtype()
Дата
Msg-id FDE7F1F2-1516-4D21-A3A2-DF784CACBDD5@kineticode.com
обсуждение исходный текст
Ответ на Re: Mysterious Bus Error with get_fn_expr_argtype()  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Mysterious Bus Error with get_fn_expr_argtype()
Список pgsql-hackers
On Sep 1, 2008, at 16:55, Tom Lane wrote:

> "David E. Wheeler" <david@kineticode.com> writes:
>> Here's the complete code:
>
> Looks like you forgot PG_FUNCTION_INFO_V1(), so what's being passed to
> this isn't an fcinfo ...

Bah! I knew I had to be missing something really fundamental. Thanks  
Tom.

BTW, anyone have any interest in this function in core? Its purpose is  
to return a string identifying the data type of its argument. It's  
useful for dynamically building queries to pass to PL/pgSQL's EXECUTE  
statement when you don't know the data types of values you're putting  
into the statement.

Thanks,

David



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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: [PATCH] allow has_table_privilege(..., 'usage') on sequences
Следующее
От: "Brendan Jurd"
Дата:
Сообщение: Re: Mysterious Bus Error with get_fn_expr_argtype()