| From: | "Erny" <aerd(at)mx3(dot)redestb(dot)es> |
|---|---|
| To: | pgsql-interfaces(at)postgresql(dot)org |
| Subject: | Python pg module and loimport |
| Date: | 2001-05-21 20:57:23 |
| Message-ID: | 3b0980f5@news |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-interfaces |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joel Hartshorn | 2001-05-22 01:45:58 | Looking for Postgress |
| Previous Message | Erny | 2001-05-21 20:41:30 | RE: Postgres problem |