Hi Christoph, I am using PostgreSQL 8.1.4, PyGresQL 3.7 and Python version 2.4.2, in an OpenSuse 10.1 Linux environment. The documentation link you sent was where I first found a reference to get_relations, but this function is not mentioned in the PostgreSQL documentation: http://www.postgresql.org/docs.
Thanks,
Marina.
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Christoph Zwerschke
Sent: Thu 12/7/2006 1:39 PM
To: PyGreSQL Development
Subject: Re: [PyGreSQL] Is get_relations() method obsolete?
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
<<winmail.dat>>
_______________________________________________ PyGreSQL mailing list [email protected] http://mailman.vex.net/mailman/listinfo/pygresql
