Re: flinfo NULL in DirectFunctionCall callee?

2019-08-26 Thread Paul A Jungwirth
On Mon, Aug 26, 2019 at 8:12 AM Tom Lane wrote: > > Paul A Jungwirth writes: > > Is it expected for flinfo to be null when using DirectFunctionCall*? > > Yes, per the comment on those functions: > > * These are for invocation of a specifically named function with a > * directly-computed paramet

Re: flinfo NULL in DirectFunctionCall callee?

2019-08-26 Thread Tom Lane
Paul A Jungwirth writes: > On Mon, Aug 26, 2019 at 8:12 AM Tom Lane wrote: >> Yes, per the comment on those functions: >> * These are for invocation of a specifically named function with a >> * directly-computed parameter list. Note that neither arguments nor result >> * are allowed to be NULL.

Re: flinfo NULL in DirectFunctionCall callee?

2019-08-26 Thread Tom Lane
Paul A Jungwirth writes: > Is it expected for flinfo to be null when using DirectFunctionCall*? Yes, per the comment on those functions: * These are for invocation of a specifically named function with a * directly-computed parameter list. Note that neither arguments nor result * are allowed

flinfo NULL in DirectFunctionCall callee?

2019-08-26 Thread Paul A Jungwirth
Hello, I'm writing a multirange_cmp function which calls range_cmp to compare individual elements. It looks like this: cmp = DatumGetInt32(DirectFunctionCall2( range_cmp, RangeTypePGetDatum(r1), RangeTypePGetDatum(r2))); But I get a segfault when range_cmp tries to reach