Re: Mysterious Bus Error with get_fn_expr_argtype()

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Mysterious Bus Error with get_fn_expr_argtype()
Date: 2008-09-02 04:03:21
Message-ID: FDE7F1F2-1516-4D21-A3A2-DF784CACBDD5@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sep 1, 2008, at 16:55, Tom Lane wrote:

> "David E. Wheeler" <david(at)kineticode(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Brendan Jurd 2008-09-02 04:35:55 Re: Mysterious Bus Error with get_fn_expr_argtype()
Previous Message Jaime Casanova 2008-09-02 02:45:06 Re: [PATCH] allow has_table_privilege(..., 'usage') on sequences