I have images stored in a postgresql 9.1 database table in bytea fields. I want to do a query to order them by size and show their size. I need this because there are some big images that are causing delay issues.
Asked
Active
Viewed 3,639 times
1 Answers
4
select length(the_image_column) as the_size
from t
order by 1 desc

Clodoaldo Neto
- 118,695
- 26
- 233
- 260