First thing I would suggest would be to update to PSQL 10.3 SP3 with the latest patch release (10.31 Update 10) from
Pervasive PSQL v10.
Second, did anything else change when you upgraded to PSQL 10?
Third, how long does the query take if you run it at the server using Pervasive COntrol Center?