ST_MemSize
Name
ST_MemSize — Returns the amount of space (in bytes) the raster takes.
Synopsis
    
     integer
     
      ST_MemSize
     
     (
    
    raster
    
     rast
    
    
     )
    
    ;
   
Description
Returns the amount of space (in bytes) the raster takes.
This is a nice compliment to PostgreSQL built in functions pg_column_size, pg_size_pretty, pg_relation_size, pg_total_relation_size.
       
      | 
     |
| 
       pg_relation_size which gives the byte size of a table may return byte size lower than ST_MemSize. This is because pg_relation_size does not add toasted table contribution and large geometries are stored in TOAST tables. pg_column_size might return lower because it returns the compressed size. pg_total_relation_size - includes, the table, the toasted tables, and the indexes.  | 
    
Availability: 2.2.0