Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> pá 22. 1. 2021 v 14:41 odesílatel <easteregg(at)verfriemelt(dot)org> napsal:
>> ERROR: syntax error at or near "DISTINCT"
>> LINE 8: _test := DISTINCT a FROM ( VALUES ( (true), ( true ) ) )...
> Using DISTINCT is not a good solution.
Yeah. It wouldn't be as painful to support this in the grammar
as it would be for UNION et al, so maybe we should just do it.
But I still find this to be mighty ugly plpgsql code.
regards, tom lane