On Thu, Nov 28, 2019 at 10:26 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> You should have written "EXCLUDED.value" not "NEW.value". There is
> a bug here, but it's that the parser accepted this rule. I'm guessing
> that the parsing logic for ON CONFLICT didn't consider the possibility
> that NEW and OLD for a rule would already be in the range table.
I must admit that I have zero recollection of this aspect of the ON
CONFLICT work. Do you think that this would be difficult to fix?
--
Peter Geoghegan