might be good enough with large blobs, covering multiple blobpages, but pretty far off with blobs significantly smaller than blobpage size.
More precise in terms of real blobspace blobpages usage might be:
select sum((((length(blob_column) - 1) / (blobpage_size - 40))::int + 1) * blobpage_size)/1024 as blob_column_kB from ...
------------------------------
Andreas Legner
------------------------------
Original Message:
Sent: Thu March 18, 2021 11:58 AM
From: Paul Watson
Subject: Size of blob column
This not giving you what you want ?
Select sum(length(blob)) from ....
Cheers
Paul
Original Message:
Sent: 3/18/2021 11:13:00 AM
From: Celso Freitas de Andrade
Subject: Size of blob column
Hello all,
I need to know the space allocated by a table that has a byte column in a blobspace. When I look at the size of the table, I don't see the portion of it that is stored in the blobspace. Is there a way to get this information?
Thanks!
------------------------------
Celso Freitas
------------------------------
#Informix