Re: Mysterious Bus Error with get_fn_expr_argtype() - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: Mysterious Bus Error with get_fn_expr_argtype()
Date
Msg-id FDE7F1F2-1516-4D21-A3A2-DF784CACBDD5@kineticode.com
Whole thread Raw
In response to Re: Mysterious Bus Error with get_fn_expr_argtype()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Mysterious Bus Error with get_fn_expr_argtype()  ("Brendan Jurd" <direvus@gmail.com>)
List 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 by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: [PATCH] allow has_table_privilege(..., 'usage') on sequences
Next
From: "Brendan Jurd"
Date:
Subject: Re: Mysterious Bus Error with get_fn_expr_argtype()