Re: 7.3 RMPS bugs ( pgdb.py and postgresql launch script )

From: Gerhard Häring <haering_linux(at)gmx(dot)de>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 7.3 RMPS bugs ( pgdb.py and postgresql launch script )
Date: 2002-12-08 17:12:13
Message-ID: 20021208171213.GB788@lilith.ghaering.test
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs

[Removing cross post to pgsql-admin(at)postgresql(dot)org]

* Gaetano Mendola <mendola(at)bigfoot(dot)com> [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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2002-12-09 00:39:01 Re: Locale problem with LC_MESSAGES
Previous Message Gaetano Mendola 2002-12-08 16:45:36 7.3 RMPS bugs ( pgdb.py and postgresql launch script )

Browse pgsql-bugs by date

  From Date Subject
Next Message Neil Conway 2002-12-08 17:44:27 Re: datatypes: text vs varchar
Previous Message Gaetano Mendola 2002-12-08 16:45:36 7.3 RMPS bugs ( pgdb.py and postgresql launch script )