timescaledb/.unreleased/bugfix_5991
Mats Kindahl 3db6922960 Call eq_func correctly in time_bucket_gapfill
The equality comparison function is called using
`DirectFunctionCall2Coll`, which do not set the `fcinfo->flinfo` when
calling the PostgreSQL function.  Since `array_eq` uses
`fcinfo->flinfo->fn_extra` for caching, and `flinfo` is null, this
causes a crash.

Fix this issue by using `FunctionCall2Coll` instead, which sets
`fcinfo->flinfo` before calling the PostgreSQL function.

Fixes #5981
2023-08-22 09:57:39 +02:00

3 lines
122 B
Plaintext

Fixes: #5991 Call eq_func correctly in time_bucket_gapfill
Thanks: @willsbit for reporting a crash in time_bucket_gapfill