Search Postgresql Archives

Large Objects: Sizeof and Deleting Unlinked LOs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there an SQL function to determine the size of a large object?

Also, can I safely delete all the large objects in pg_catalog.pg_largeobject? For example:

select lo_unlink(loid) from (select distinct loid from pg_catalog.pg_largeobject) as loids where loid not in (select my_oid from my_only_table_that_uses_large_objects)

Or are there other things stored in there that I don't know about!

Thanks.

Howard Cole
www.selestial.com

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux