From: Tom Lane <tgl@sss.pgh.pa.us>
To: sandhya <sandhyar@amiindia.co.in>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: Reg:lo_open error..pls help me
Date: Wed, 01 Mar 2006 11:03:12 -0500
Message-ID: <11079.1141228992@sss.pgh.pa.us> (raw)
In-Reply-To: <01b701c63d2a$4d640880$cd00000a@sandhyar>
References: <018201c63d27$34f26ec0$cd00000a@sandhyar>
<01b701c63d2a$4d640880$cd00000a@sandhyar>
"sandhya" <sandhyar@amiindia.co.in> writes:
> But lo_open is returning -1(-ve value).
Are you sure that's where it's failing? The fragment you showed looks
fine as far as it goes. The most likely bet is you forgot to wrap it in
a transaction (BEGIN/COMMIT commands), but that would result in a
failure at the seek/write commands because the object wouldn't be open
anymore.
You might want to look at src/test/examples/testlo.c in the PG distribution.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, sandhyar@amiindia.co.in
Subject: Re: Reg:lo_open error..pls help me
In-Reply-To: <11079.1141228992@sss.pgh.pa.us>
References: <018201c63d27$34f26ec0$cd00000a@sandhyar> <01b701c63d2a$4d640880$cd00000a@sandhyar> <11079.1141228992@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox