Problems with BLOBs under Windows?

From: Trond Kjernaasen <trond(at)trolltech(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Problems with BLOBs under Windows?
Date: 2001-01-19 12:58:26
Message-ID: m34ryvu2a5.fsf@silverfish.troll.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I've done some tests with large objects and it works just fine under
Linux, but when I try the same code under Windows (I use the libpq
frontend) it fails for some reason with lo_read() always returning 0.

The test program I'm using is basically a modified version of the one
listed in chapter 3 of the programmer's guide (testlo.c). I first
tried to compile it using MSVC 6.0, but found that I had to replace
the open() calls in lo_import() and lo_export() in the
interfaces/libpq/fe-lobj.c file with the native Windows calls. The
files were not opened in the correct mode for some reason.

I then tried to compile the example with gcc and the cygwin tools -
the test program worked just fine without modifications to the
fe-lobj.c file. However, my lo_read() calls still returns 0 no matter
what I do.

I've tried this with both 6.51, 7.0.2 and 7.0.3 - but they all give
the same results.

Does anyone have any experience with this under Windows? I would
greatly appreciate any help in getting to the bottom of this problem.

Thanks,

--
Trond K.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2001-01-19 14:19:17 Re: install locale.
Previous Message Martin A. Marques 2001-01-19 12:37:44 Re: compiling 7.1-beta1