Cesium with Postgis

How can i add data from postgis to cesium map.

Cesium supports GeoJSON so you could get the geometry from the database as GeoJSON.
https://postgis.net/docs/ST_AsGeoJSON.html

Thanks for the reply Kevin Ten Eyck i’m able to bring shp from postgis to map as json & its working .but what about other kinds of vector and raster data.

Cesium supports most common imagery/raster formats and popular vector data like KML and GeoJSON. This Cesium Workshop tutorial is a comprehensive guide on most of these things:

You can scroll through it or CTRL+F to find things like “imagery” or “vector” and how to add it in.