pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erny <aerd@mx3.redestb.es>
To: pgsql-interfaces@postgresql.org
Subject: Python pg module and loimport
Date: Mon, 21 May 2001 22:57:23 +0200
Message-ID: <3b0980f5@news> (raw)

Hi there.

I'm using Postgresql 7.1.1 under NT4/cygwin1.31 with python 2.1.dll and
pygres (recent version?)

large object import don't work:

>>> import pg
>>> db=pg.DB()        # Connects to my database
>>> db.loimport("/hello")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
_pg.error: can't create large object.

The file is accessible from front-end (and also back-end with the same
path). it's a small file.

Other interfaces (libq, libq++) work well (the testlo.c example) so
could be an error of the python layer?

I could observe the creation of 1 tuple in the pg_largeobject system-table,
but with with pageno=0 and no data.

Erny
Spain






Message-ID: <3b0980f5@news>
Permalink:  ../3b0980f5@news/
Also on:    postgresql.org/message-id/3b0980f5@news

 · 

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: aerd@mx3.redestb.es
  Subject: Re: Python pg module and loimport
  In-Reply-To: <3b0980f5@news>

* 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