Hi Tom,
I have a proposal. SD stays with the cache entry, and plpython leaves
the input collation out of its cache key.
The reason is that an entry should only split on what changes the
compiled code. The trigger relation does, and so would the actual
argument types once plpython has polymorphic arguments. The collation
does not, since plpython never uses it.
If that sounds right, I'll send a v2.
Thanks,
Shihao