insert into foo(a) with recursive t(n) AS (SELECT 10 AS n UNION ALL SELECT n-1 FROM t WHERE n > 0) select n from t; works on 8.5 -- GJ
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных