1 2 3 4 5 6 7 8
--!syntax_pg WITH RECURSIVE t(n) AS ( SELECT 1 UNION ALL SELECT n+1 FROM t WHERE n < 5 ) SELECT * FROM t