Frage

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.

War es hilfreich?

Lösung

select length(the_image_column) as the_size
from t
order by 1 desc
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top