diff -ru postgresql-7.3.1/src/interfaces/python/pgdb.py postgresql-7.3.1-fix/src/interfaces/python/pgdb.py
--- postgresql-7.3.1/src/interfaces/python/pgdb.py	2002-06-03 13:42:11.000000000 -0400
+++ postgresql-7.3.1-fix/src/interfaces/python/pgdb.py	2003-01-24 12:34:56.000000000 -0500
@@ -147,7 +147,7 @@
 			return self.__type_cache[oid]
 		except:
 			self.__source.execute(
-				"SELECT typname, typprtlen, typlen "
+				"SELECT typname, typlen "
 				"FROM pg_type WHERE oid = %s" % oid
 			)
 			res = self.__source.fetch(1)[0]
@@ -155,7 +155,7 @@
 			# have to be prepended by the caller.
 			res = (
 				res[0],
-				string.atoi(res[1]), string.atoi(res[2]),
+				-1, string.atoi(res[1]),
 				None, None, None
 			)
 			self.__type_cache[oid] = res
