Re: [HACKERS] Two questions about Postgres parser

2017-03-01 Thread Jim Nasby
On 2/27/17 10:37 AM, Tom Lane wrote: 2. Implicit user defined type casts are not applied for COALESCE operator: That has nothing to do with whether the cast is user-defined. It has to do with not wanting to automatically unify types across type-category boundaries (in this case, numeric vs.

Re: [HACKERS] Two questions about Postgres parser

2017-02-27 Thread Tom Lane
Konstantin Knizhnik writes: > 1. Moving-aggregate implementation should return the same type as plain > implementation. Yes, in most cases it is hard to find arguments why them > should return different types. But it is not true for vectorized > operations... I

[HACKERS] Two questions about Postgres parser

2017-02-27 Thread Konstantin Knizhnik
Hi hackers, Working on vectorized extension for Postgres (VOPS) I faced with two things in Postgres compiler which break my expectations and force me to abandon my original implementation plan. I wonder if it is really principle and correct that: 1. Moving-aggregate implementation should