Re: select_common_typmod

2020-10-27 Thread Peter Eisentraut
On 2020-10-26 10:05, Heikki Linnakangas wrote: There might have been a tiny bug in transformValuesClause() because while consolidating the typmods it does not take into account whether the types are actually the same (as more correctly done in transformSetOperationTree() and buildMergedJoinVar())

Re: select_common_typmod

2020-10-26 Thread Heikki Linnakangas
On 20/10/2020 11:58, Peter Eisentraut wrote: While working on another patch, I figured adding a select_common_typmod() to go along with select_common_type() and select_common_collation() would be handy. Typmods were previously combined using hand-coded logic in several places, and not at all in