PSQL does not support the WITH clause. You can use SELECT INTO to create a temporary table (local or global) and use it in other queries.
http://docs.pervasive.com/products/database/psqlv10/wwhelp/wwhimpl/js/html/wwhelp.htm#href=sqlref/syntaxref.4.70.html