Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 42EA7475F38; Sun, 8 Dec 2002 11:46:28 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 4D0A0475D01; Sun, 8 Dec 2002 11:45:41 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 2C55A43A736; Sun, 8 Dec 2002 11:45:41 -0500 (EST) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin,comp.databases.postgresql.bugs Subject: 7.3 RMPS bugs ( pgdb.py and postgresql launch script ) Date: Sun, 8 Dec 2002 17:45:36 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 119 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org, pgsql-bugs@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/89 X-Sequence-Number: 6584 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 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 ). There is also in the script for launch postgres a couple of errors: 1) the wrong check for the version ( already known ) 2) when postgres is launched the script do: echo " [ OK ] " or echo " [ FAIL ] " but should be more correctly: echo_success or echo_failure I attach both patch ( I added also the stop_immediate ) Regards Gaetano Mendola begin 666 pgdb.py.patch M+2TM('!G9&(N<'D),C P,BTQ,BTP-R P,3HR-#HQ.2XP,# P,# P,# @+3 Q M,# **RLK('!G9&(N<'DN=W)O;F<),C P,BTQ,BTP-R P,3HR,CHR,"XP,# P M,# P,# @+3 Q,# *0$ @+3$T-RPW("LQ-#7!E7V-A8VAE6V]I9%T*( D)97AC97!T.@H@"0D)&5C=71E* HM"0D)"2)314Q%0U0@='EP;F%M92P@-"P@='EP;&5N M("(**PD)"0DB4T5,14-4('1Y<&YA;64L('1Y<'!R=&QE;BP@='EP;&5N("(* M( D)"0DB1E)/32!P9U]T>7!E(%=(15)%(&]I9" ]("5S(B E(&]I9 H@"0D) F*0H@"0D)&ES=&EN9R!01T1!5$$A($EN:71D M8B!I="X*0$ @+3$T."PX("LQ-30L."! 0 H@( EF:0H@"B )(R!#:&5C:R!F M;W(@<&]S=&UA7,O)'M.04U%?0H@?0H@"BUS=&]P7VEM;65D:6%T92@I>PHM M"65C:&\@+6X@)")3=&]P<&EN9R D>TY!345]('-EPH@(" @('-T;W *(" @("!S=&%R= I 0" M,C,X+#D@*S(R.2PV($! "B @ M('-T;W I"B )