get the data size of a large object

Поиск
Список
Период
Сортировка
Искать

get the data size of a large object

От:
Stéphane Pinel <spinel@noos.fr>
Дата:
Is there a way to get the data size of a large object ? I would like to  
be able
to read an entire large object using lo_read function. Since this  
function needs
a "len" parameter as input, I have to know the size of the large  
object...

Any idea ?

Thanks.

------------------------------------------------------------------------ 
---
Stéphane Pinel
iChat/AIM: s.pinel
------------------------------------------------------------------------ 
---

Re: get the data size of a large object

От:
"Jeroen T. Vermeulen" <jtv@xs4all.nl>
Дата:
On Thu, Apr 24, 2003 at 07:43:29PM +0200, Stéphane Pinel wrote:
> Is there a way to get the data size of a large object ? I would like to  
> be able
> to read an entire large object using lo_read function. Since this  
> function needs
> a "len" parameter as input, I have to know the size of the large  
> object...

Just seek to the end, remember the return value, and seek back.


Jeroen


Re: get the data size of a large object

От:
Stéphane Pinel <spinel@noos.fr>
Дата:

Le jeudi, 24 avr 2003, à 22:12 Europe/Paris, Jeroen T. Vermeulen a  
écrit :

> On Thu, Apr 24, 2003 at 07:43:29PM +0200, Stéphane Pinel wrote:
>> Is there a way to get the data size of a large object ? I would like  
>> to
>> be able
>> to read an entire large object using lo_read function. Since this
>> function needs
>> a "len" parameter as input, I have to know the size of the large
>> object...
>
> Just seek to the end, remember the return value, and seek back.
>

Oh yes, my question was so stupid. Thanks a lot !

------------------------------------------------------------------------ 
---
Stéphane Pinel
------------------------------------------------------------------------ 
---


FAQ