Re: Weight BLOB objects in postgreSQL? How? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Weight BLOB objects in postgreSQL? How?
Date
Msg-id A737B7A37273E048B164557ADEF4A58B365A4789@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Re: Weight BLOB objects in postgreSQL? How?  (María Dovale <m.dovale@griensu.com>)
List pgsql-general
María Dovale wrote:
> Thanks, I mean, how heavy it is in kB.

You can use lo_lseek64 to find out how big a large object is.
To find out the size of large object 24858, you can

SELECT lo_lseek64(lo_open(24858, 262144), 0, 2);

The last "2" here is SEEK_END from /usr/include/unistd.h, so it may be
that this value is different for different operating systems.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: wambacher
Date:
Subject: Re: autovacuum worker running amok - and me too ;)
Next
From: pinker
Date:
Subject: Re: VACUUM FULL doesn't reduce table size