The PgPrepareParameters has the index_relfilenode_oid field which can be used to detect when it is required to use secondary index. The use_secondary_index field is superfluous because it allows undesired data state: use_secondary_index is true and index_relfilenode_oid is kInvalidOid
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
[X] I confirm this issue does not contain any sensitive information.
Jira Link: DB-14072
Description
The
PgPrepareParameters
has theindex_relfilenode_oid
field which can be used to detect when it is required to use secondary index. Theuse_secondary_index
field is superfluous because it allows undesired data state:use_secondary_index
istrue
andindex_relfilenode_oid
iskInvalidOid
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information