[PyGreSQL] Is get_relations() method obsolete?

Marina Olhovsky olhovsky at mshri.on.ca
Thu Dec 7 15:01:20 EST 2006


Well, that explains it then... if it's been added in version 3.8 and I'm using 3.7 - guess it won't be available to me?


-----Original Message-----
From: pygresql-bounces at Vex.Net on behalf of D'Arcy J.M. Cain
Sent: Thu 12/7/2006 2:23 PM
To: PyGreSQL Development
Subject: Re: [PyGreSQL] Is get_relations() method obsolete?
 
On Thu, 07 Dec 2006 19:39:34 +0100
Christoph Zwerschke <cito at online.de> wrote:
> 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.

Yep, 3.8 in fact.  Far from being obsolete it is replacing the
get_tables method although that method still exists as a special case
of get_relations() for backwards compatibility.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org
_______________________________________________
PyGreSQL mailing list
PyGreSQL at Vex.Net
http://mailman.vex.net/mailman/listinfo/pygresql

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3107 bytes
Desc: not available
Url : http://mailman.vex.net/pipermail/pygresql/attachments/20061207/d4da0d80/attachment.bin 


More information about the PyGreSQL mailing list