I need to convert a query from Oracle to Postgres which uses connect by level on a sequence in Oracle. 
I know that connect by level is not available in Postgres. I couldn't find an alternate for this using recursive cte. 
In Oracle if I run this query.
 create sequence ID_SEQ;
 select ID_SEQ.nextval from DUAL connect by level <= 3;
I will get the following result
1
2
3
I need the same in Postgres. Please share some solutions if anyone has any idea.
Thanks in advance Gokul.
