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