Re: Calling a SQL function inside a C function

2020-08-27 Thread Eric Zhu
Much thanks! This is exactly what I was looking for: funcname = stringToQualifiedNameList("times_two"); > funcoid = LookupFuncName(func_name, 1, funcargs, false); > > Datum ret = OidFunctionCall1(funcoid, Int32GetDatum(13)); > Eric On Wed, Aug 26, 2020 at 8:53 PM Pavel Stehule wrote: > Hi > >

Re: Calling a SQL function inside a C function

2020-08-26 Thread Pavel Stehule
Hi čt 27. 8. 2020 v 0:43 odesílatel Eric Zhu napsal: > How do I call a function defined using CREATE FUNCTION in SQL inside a C > function in an extension? I feel this should be possible as the query > parser is able to resolve the function names and arguments in a raw string > query. I want to