How to get the size of a large object?

From: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to get the size of a large object?
Date: 2000-04-21 19:04:02
Message-ID: 00042115124402.18804@comptechnews
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I use php4 and I'm wondering if there is a way to find out the size of a large
object so that when I call pg_loread($fd, $len), I can set $len to the correct
number of bytes to read in. Does the database maintain this information
anywhere accessible by a query? I could store the sizes in a table along with
the oids but would rather not if I don't need to.

In response to

  • PG Problems at 2000-04-21 13:30:24 from ALASTAIR JOHN TAYLOR

Responses

Browse pgsql-general by date

  From Date Subject
Next Message swalker 2000-04-21 20:10:11 Re: How to get the size of a large object?
Previous Message Loïc TREGOUËT 2000-04-21 17:01:36 How to use new type ?