Using Postgres 10.6.
My objective is to find the max size
If the datatype of a column in oid
, I understand from https://www.postgresql.org/docs/9.2/largeobjects.html that it can be concluded to be an LOB column. Can I conclude that if the datatype of a column in not oid
, then the column is not an LOB?
If not, how do I go about finding the LOB columns in the schema and their max size?
If yes, I found here (Get size of large object in PostgreSQL query?) how to find size of an LOB given an oid. The best approach I can think of as of now, to find the size of the largest LOB value in a schema, is to loop through all LOB rows in all tables, and take the max. Is there a better approach?