pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daisuke Maki <daisuke@wafu.ne.jp>
To: pgsql-interfaces@postgresql.org
Subject: lo_creat problem?
Date: Sun, 11 Feb 2001 00:14:25 -0800
Message-ID: <3A8649E1.1898CE76@wafu.ne.jp> (raw)

Hi,

I don't know if this is a perl issue or not but here's the scenario:

Platform: Linux 2.2 kernel (Japanized)
Postgres: 7.03 (compiled with --with-perl and --enable-multibyte )
pgsql_perl: 1.90, 1.81

The problem is very simple. 
All i'm trying to do is to create a Large Object. However,

$conn->lo_creat( PGRES_INV_WRITE | PGRES_INV_READ );
$conn->lo_import ( 'some_filename' );

both return an OID of ZERO, no matter what I do.
It doesn't even return PGRES_InvalidOID on failure.

In fact, the lo_demo.pl, which came with pgsql_perl 1.9, didn't work
either. So I don't think it would be a problem on my script.

Is this a known issue? Is there a way around it?

Any help would be appreciated.
Thanks in advance,
--d



view thread (2+ messages)  latest in thread

Message-ID: <3A8649E1.1898CE76@wafu.ne.jp>
Permalink:  ../3A8649E1.1898CE76@wafu.ne.jp/
Also on:    postgresql.org/message-id/3A8649E1.1898CE76@wafu.ne.jp

 · 

reply

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: daisuke@wafu.ne.jp
  Subject: Re: lo_creat problem?
  In-Reply-To: <3A8649E1.1898CE76@wafu.ne.jp>

* 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