pgsql: Add missing check_collation_set call to bpcharne().

2019-11-13 Thread Tom Lane
Add missing check_collation_set call to bpcharne(). We should throw an error for indeterminate collation, but bpcharne() was missing that logic, resulting in a much less user-friendly error (either an assertion failure or "cache lookup failed for collation 0"). Per report from Manuel Rigger. Bac

pgsql: Add missing check_collation_set call to bpcharne().

2019-11-13 Thread Tom Lane
Add missing check_collation_set call to bpcharne(). We should throw an error for indeterminate collation, but bpcharne() was missing that logic, resulting in a much less user-friendly error (either an assertion failure or "cache lookup failed for collation 0"). Per report from Manuel Rigger. Bac