From: Michael Fuhr <mike@fuhr.org>
To: sandhya <sandhyar@amiindia.co.in>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: reading reading files from the DB
Date: Thu, 29 Dec 2005 00:44:42 -0700
Message-ID: <20051229074442.GA46583@winnie.fuhr.org> (raw)
In-Reply-To: <20051229044734.GA45641@winnie.fuhr.org>
References: <03b301c60b9f$3fff4f40$cd00000a@amiindiahjwbgh>
<20051229044734.GA45641@winnie.fuhr.org>
On Wed, Dec 28, 2005 at 09:47:34PM -0700, Michael Fuhr wrote:
> What are you expecting to happen and what actually does happen?
Another thing: are you calling the lo_* functions within a transaction?
As the Client Interfaces section of the Large Objects chapter in
the documentation says, "All large object manipulation using these
functions must take place within an SQL transaction block." If you
call lo_open() outside a transaction block then it will fail and
PQerrorMessage() will return a string like "invalid large-object
descriptor: 0".
--
Michael Fuhr
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: mike@fuhr.org, sandhyar@amiindia.co.in
Subject: Re: reading reading files from the DB
In-Reply-To: <20051229074442.GA46583@winnie.fuhr.org>
References: <03b301c60b9f$3fff4f40$cd00000a@amiindiahjwbgh> <20051229044734.GA45641@winnie.fuhr.org> <20051229074442.GA46583@winnie.fuhr.org>
* 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