On Tue, May 08, 2018 at 07:05:46PM -0300, Alvaro Herrera wrote: > The reason for this crash is that gen_partprune_steps_internal() is > unable to generate any steps for the clause -- which is natural, since > the operator is not in a btree opclass. There are various callers > of gen_partprune_steps_internal that are aware that it could return an > empty set of steps, but this one in match_clause_to_partition_key for > the ScalarArrayOpExpr case was being a bit too optimistic.
Indeed. While looking at this code, is there any reason to not make gen_partprune_steps static? This is only used in partprune.c for now, so the intention is to make it available for future patches? -- Michael
signature.asc
Description: PGP signature