A completely different solution is to use the unpatched Trac installation and execute the following against the database:
CREATE FUNCTION pg_catalog.text(integer) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int4out($1));'; CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) AS IMPLICIT;"
One more fix needed.
Links: trac.edgewall. org/ticket/ 6776
http://
A completely different solution is to use the unpatched Trac installation and execute the following against the database: text(integer) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin( int4out( $1));'; CREATE CAST (integer AS text) WITH FUNCTION pg_catalog. text(integer) AS IMPLICIT;"
CREATE FUNCTION pg_catalog.