Aleksander Alekseev <aleksan...@timescale.com> writes:
> The third case is the following:

> ```
> extern TSDLLEXPORT ResultRelInfo *
> ts_catalog_open_indexes(Relation heapRel)
> {
>     ResultRelInfo *resultRelInfo;

>     resultRelInfo = makeNode(ResultRelInfo);
>     resultRelInfo->ri_RangeTableIndex = 0; /* dummy */
>     resultRelInfo->ri_RelationDesc = heapRel;
>     resultRelInfo->ri_TrigDesc = NULL; /* we don't fire triggers */

>     ExecOpenIndices(resultRelInfo, false);

>     return resultRelInfo;
> }
> ```

I'd call that a bug in timescale.  It has no business assuming that
it can skip InitResultRelInfo.

                        regards, tom lane


Reply via email to