AR
просто предъявы странные.
ну это как питонистам норм, что дефолты в функциях у них с состоянием, а мне, как тому, кто снаружи смотрит, это что-то вообще не ок )
Size: a a a
AR
A
AR
-- can't name this value
> select x2 from foo group by x+1 as x2;
ERROR: syntax error at or near "as"
LINE 1: select x2 from foo group by x+1 as x2;
C
С
AR
-- this magically works, even though x is not in scope in the select
> select (x + 1)*2 from foo group by x+1;
?column?
----------
(0 rows)
-- but this doesn't, because it isn't the same parse tree
> select (x +1)*2 from foo group by x+1;
ERROR: column "foo.x" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select (x +1)*2 from foo group by x+1;
AR
select x+1 as x2 from foo group by x2
AR
select x2 from (select x+1 as x2 from foo) group by x2
AR
select x+1 as x2, x2+1 from foo
С
AR
AR
AR
С
AR
С
AR
IV
AS
AR