pgFormatter
pgFormatter copied to clipboard
Bad indentation with nested array syntax
No idea why the indentation is off by 1 at the end of this query
pg_format << EOF
select t1.a,
(array (select (b, array (select b from t2)) from t2)) from t1
EOF
SELECT
t1.a,
(ARRAY (
SELECT
(b,
ARRAY (
SELECT
b
FROM
t2))
FROM
t2))
FROM
t1