From: Charles Randle <caspanis@cybervale.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] Problems with postgres V6.5.3 large objects
Date: Mon, 06 Dec 1999 00:44:43 -0500
Message-ID: <384B4D4B.BF6EE9D6@cybervale.com> (raw)
References: <7702.944436768@sss.pgh.pa.us>
Tom,
In terms of access to the large object, my class maintains an array of
objects which are currently open
(Oid,name,file descriptor etc ..). Whenever access is needed to any
large object an accessor method
simply executes 'lo_read'/lo_write' or lo_seek as is desired . If the
object is not on the active list then another method opens the object
(using lo_open ).As is to be expected the destructor of the class closes
all open objects .
These accessor methods are called by C style functions which are
basically wrappers of them . This is done because the access is needed
by a Dialogic voice library . The messages are actually VOX voice
messages which are played by an application that I am designing. The
Dialogic libraries that I'm using allow the
installation of custom I/O functions for reading to or writing from
non-standard devices (hence the need for C style wrappers ) , but these
custom functions must have the same prototype of standard
open/read/write/lseek systems calls .
The interface works for the first such VOX large object but the error
manifests itself if I try to load (open ) another large object for use .
Regards,
Charles Randle
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: caspanis@cybervale.com, tgl@sss.pgh.pa.us
Subject: Re: [INTERFACES] Problems with postgres V6.5.3 large objects
In-Reply-To: <384B4D4B.BF6EE9D6@cybervale.com>
* 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