Re: [HACKERS] Determine operator from it's function

2015-07-08 Thread Jim Nasby
On 7/4/15 12:33 AM, Tom Lane wrote: Jim Nasby writes: On 7/3/15 2:33 AM, Heikki Linnakangas wrote: On 07/03/2015 01:20 AM, Jim Nasby wrote: Is there a way to determine the operator that resulted in calling the operator function? I thought fcinfo->flinfo->fn_expr might get set to the OpExpr, b

Re: [HACKERS] Determine operator from it's function

2015-07-03 Thread Tom Lane
Jim Nasby writes: > On 7/3/15 2:33 AM, Heikki Linnakangas wrote: >> On 07/03/2015 01:20 AM, Jim Nasby wrote: >>> Is there a way to determine the operator that resulted in calling the >>> operator function? I thought fcinfo->flinfo->fn_expr might get set to >>> the OpExpr, but seems it can be a Fun

Re: [HACKERS] Determine operator from it's function

2015-07-03 Thread Jim Nasby
On 7/3/15 2:33 AM, Heikki Linnakangas wrote: On 07/03/2015 01:20 AM, Jim Nasby wrote: Is there a way to determine the operator that resulted in calling the operator function? I thought fcinfo->flinfo->fn_expr might get set to the OpExpr, but seems it can be a FuncExpr even when called via an ope

Re: [HACKERS] Determine operator from it's function

2015-07-03 Thread Heikki Linnakangas
On 07/03/2015 01:20 AM, Jim Nasby wrote: Is there a way to determine the operator that resulted in calling the operator function? I thought fcinfo->flinfo->fn_expr might get set to the OpExpr, but seems it can be a FuncExpr even when called via an operator... Don't think there is. Why do you ne

[HACKERS] Determine operator from it's function

2015-07-02 Thread Jim Nasby
Is there a way to determine the operator that resulted in calling the operator function? I thought fcinfo->flinfo->fn_expr might get set to the OpExpr, but seems it can be a FuncExpr even when called via an operator... -- Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX Data in Trou