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

_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to