Re: Re: Problems with BLOBs under Windows?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Trond Kjernaasen <trond(at)trolltech(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: Problems with BLOBs under Windows?
Date: 2001-01-19 18:43:22
Message-ID: 9559.979929802@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Trond Kjernaasen <trond(at)trolltech(dot)com> writes:
> Sorry for posting followups on my own mails, but I've noticed that
> I can actually use lo_read() if I read the BLOBs in chunks of
> 32760 bytes. If I try to read 32761 bytes it fails for some reason.

I'm betting that something is rounding up to the next multiple of 8
bytes, and then something else is trying to fit the result in a short
integer. Dunno where though --- AFAIR, all the LO-related code uses
integer counts, and I can't think of a good reason for rounding off
to an alignment multiple either.

Can you pursue this further and identify the culprit? I have no time
for it at the moment.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-01-19 18:49:26 Re: Re: [PATCHES] s_lock.h cleanup
Previous Message Bruce Momjian 2001-01-19 18:42:37 Re: Re: [PATCHES] s_lock.h cleanup