From: | Jeff Davis <jdavis-pgsql(at)empires(dot)org> |
---|---|
To: | Manuel Tejada <mantemu(at)terra(dot)com(dot)pe> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: PostgreSQL 7.4.1 and pgdb.py |
Date: | 2004-01-31 03:42:27 |
Message-ID: | 1075520547.21383.7.camel@jeff |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> >>>cursor.execute("select * from address")
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/site-packages/pgdb.py", line 189, in execute
> self.executemany(operation, (params,))
> File "/usr/lib/python2.2/site-packages/pgdb.py", line 221, in executemany
> desc = type[1:2]+self ._cache.getdescr(typ[2])
> File "/usr/lib/python2.2/site-packages/pgdb.py", line 149, in getdescr
> self ._source.execute(
> _pg.error: ERROR: non exist the column "typprtlen"
That's a column in a system catalog table (starts with "pg_"). The
pgdb.py must be trying to access an out of date version of the system
catalog.
You can probably get an updated pgdb.py somehow, or you can just use
"import pg" which has a different interface (non DBAPI-2.0 compliant)
but should work fine (since it doesn't try to access system catalogs,
it's more of a low-level PG interface for python).
In short, the problem exists in pgdb.py, which is trying to access
information in an out-of-date way.
Regards,
Jeff Davis
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2004-01-31 03:59:04 | Re: PostgreSQL 7.4.1 and pgdb.py |
Previous Message | Gregory Wood | 2004-01-31 03:18:49 | Re: Two joins on same foreign key |