[PyGreSQL] Is get_relations() method obsolete?
Christoph Zwerschke
cito at online.de
Thu Dec 7 13:39:34 EST 2006
Marina Olhovsky schrieb:
> Is get_relations() function obsolete? I tried using it in a Python
> script to retrieve a list of all sequences from a database, and I got an
> AttributeError:
>
> import pg
> db = pg.DB(my_dbname, my_host, my_port, None, None, my_user, my_passwd)
> sequences = db.get_relations('S')
Just tested it with the latest version 3.8.1 and it works. The method
was added in version 3.5 or so.
The documentation is here:
http://www.pygresql.org/pg.html#get-relations-get-list-of-relations-in-connected-database
Which PyGreSQL/Python versions are you using?
-- Christoph
More information about the PyGreSQL
mailing list