> I can not find command in postgres - With ... as
You need Postgres 8.4 for that:
http://www.postgresql.org/docs/current/static/queries-with.html
Thomas