Thanks a lot. Running legacy sql helped me. Regards, Prabin -- View this message in context: http://osgeo-org.1560.n6.nabble.com/error-accessing-PostGIS-2-layer-tp4975444p4983166.html Sent from the Mapserver - User mailing list archive at Nabble.com.