Dynamic function execution?

From: Nick Johnson <arachnid(at)notdot(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Dynamic function execution?
Date: 2006-03-14 06:45:47
Message-ID: 1F37CD5F-F711-41C9-A9AC-88F06FE78115@notdot.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Can anyone provide me with some direction on how to write a function
I can load into postgres that will execute a function specified by
OID (or regproc/regprocedure) at runtime, with type safety? I've been
able to write such a function in C, but I was unable to figure out
how to determine the parameters that the specified function expects,
so I can prevent calling a function that doesn't match the expected
signature (which segfaults postgres).

-Nick Johnson

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2006-03-14 07:56:31 Re: Update value to "the first character is capital and
Previous Message Eric B. Ridge 2006-03-14 05:10:49 Re: Possible data corruption with Postgres 7.4.8