How can I create a polygon, containing the actual outlines (aka footprint) of a raster file with PostGIS?
I just need the outlines of the data containing parts of the raster.
ST_PixelAsPolygon creates a complex polygons - but I just need the footprint.
There is a similar question here Creating shapefile showing footprints of Rasters?, but the answers do not cover PostGIS.