<pre>>><i> explain select ST_Extent(ST_Envelope(rast)) from raster.ofc10k_2010 limit 1;
</i>>><i> 
</i>>><i> And see that.
</i>>><i> 
</i>>><i> Limit  (cost=48027.93..48027.94 rows=1 width=32)
</i>>><i>   ->  Aggregate  (cost=48027.93..48027.94 rows=1 width=32)
</i>>><i>         ->  Seq Scan on ofc10k_2010  (cost=0.00..37419.53 rows=1414453
</i>>><i> width=32)
</i>>><i> <br><br></i>>Try this:
>
>SELECT ST_Extent(rast::geometry) from raster.ofc10k_2010;
>
>Pierre</pre>Hi, Pierre,<br>I test you query (with limit 1 to have same conditions).<br><pre>SELECT ST_Extent(rast::geometry) from raster.ofc10k_2010 limit 1;</pre>
<br>It report this cost:<br>It is rather the same.<br><br>Limit  (cost=44491.80..44491.81 rows=1 width=32)<br>  ->  Aggregate  (cost=44491.80..44491.81 rows=1 width=32)<br>        ->  Seq Scan on ofc10k_2010  (cost=0.00..37419.53 rows=1414453 width=32)<br clear="all">
<br><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br><br>