We are developing a GIS solution using a Postgis database and GeoServer for WMS Image rendering and WFS queries,We use sql views to create geoserver layers because manipulating