When we tried at first to generate the schema file using the jdbc task,
we found that the database name put in the schema file was wrong.
Instead of the db name there was the username used to connect to the db.
We worked around it changing the username.
We use Torque 3.3
The DB server is postgres8.3
The jdbc driver is postgresql-8.3-603.jdbc4.jar