pgsql2shp.exe from a Windows batch file and I get an error when using a
"C:\Program Files\PostgreSQL\9.4\bin\pgsql2shp.exe" [ ... ] "WITH test AS (SELECT gid, the_geom FROM siveer_aep.geo_c_3_0_3) SELECT * FROM test"
[ ... ] stands for options I consider pointless here.
I have tried a simple query that runs fine. The error output is:
Table geo_c_3_0_3) SELECT * FROM test does not exist
It looks like
WITH clause syntax is misinterpreted by the exec...
I have not found anything on the Internet about this issue. Any idea?