Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 16EA4475E2B for ; Sun, 8 Dec 2002 12:12:34 -0500 (EST) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by postgresql.org (Postfix) with ESMTP id 7B387475E18 for ; Sun, 8 Dec 2002 12:12:28 -0500 (EST) Received: from fwd01.sul.t-online.de by mailout11.sul.t-online.com with smtp id 18L4yg-0004sj-0C; Sun, 08 Dec 2002 18:12:26 +0100 Received: from gargamel.ghaering.test (510095183908-0001@[217.80.236.58]) by fmrl01.sul.t-online.com with esmtp id 18L4yV-0XvL5kC; Sun, 8 Dec 2002 18:12:15 +0100 Received: from lilith.ghaering.test (lilith.ghaering.test [192.168.2.10]) by gargamel.ghaering.test (Postfix) with ESMTP id 1B086378; Sun, 8 Dec 2002 18:10:23 +0100 (CET) Received: by lilith.ghaering.test (Postfix, from userid 1000) id 7E03C1C4DFD; Sun, 8 Dec 2002 18:12:13 +0100 (CET) Date: Sun, 8 Dec 2002 18:12:13 +0100 From: Gerhard =?iso-8859-1?Q?H=E4ring?= To: Gaetano Mendola Cc: pgsql-bugs@postgresql.org Subject: Re: 7.3 RMPS bugs ( pgdb.py and postgresql launch script ) Message-ID: <20021208171213.GB788@lilith.ghaering.test> Mail-Followup-To: Gaetano Mendola , pgsql-bugs@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Organization: People's Front of Judea X-Sender: 510095183908-0001@t-dialin.net X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/82 X-Sequence-Number: 5068 [Removing cross post to pgsql-admin@postgresql.org] * Gaetano Mendola [2002-12-08 17:45 +0100]: > Hi all, > > the file pgdb.py distribuited with Postgresql 7.3 RPM ( RedHat 8.0) > is affectd by an error that not permit anymore to use the > pgdb interface for python. > > In that file there is present the following query: > > SELECT typname, typprtlen, typlen > FROM pg_type WHERE oid = %s" % oid Yeah, looks familiar. > the column typptrlen do not exist anymore in the table pg_type!!! So > I replace the column with 4 but I don't know if is a good fix ( BTW my > regression tests now are working correctly ). As this value cannot be determined anymore, it's IMO better to set it to -1 instead. This is what I've done in our alternative PostgreSQL interface, pyPgSQL (http://pypgsql.sf.net/) and what I've also suggested to D'Arcy. If I interpreted D'Arcy's response correctly, he's already fixed this bug in PostgreSQL CVS. Cheers, -- Gerhard