The getInt32() method of IDataReader (implemented by PgSqlDataReader) returns wrong values. Even though the db field is of type int32, the correct values can only be read if getInt64() is used. If the IDataReader object is casted to PgSqlDataReader, the problem does not occur.
Regards,
kolya