Howdy JRers,
I am working on a software which can be installed with both Oracle and Postgres as the backend. I have two questions:
1. For the next release we have to upgrade the database. So I wrote this program in
Java using
JDBC to do it. Cant do it in SQL (see seond question) Anyway, the program runs fine on Oracle. It took about 15 minutes on a dual processor machine. But the trouble is with Postgres JDBC driver. The first problem I run into is that I get java.lang.outOfMemory error. I think postgres JDBC driver returns the whole query result (huge in this case) in one go whereas Oracle JDBC driver returns a cursor. Any insight into this will be great.
Then I increased memory allocation for JVM. Still the query is probably going to take 1 week to complete on a faster dual processor machine!! (i think it will be 1 week - the query is still running in background....)
Any clues about performace issues with postgres JDBC driver?
2. I tried to run the same query in SQL:
But I keep getting this error: numeric field overflow. Any idea what I am doing wrong. numericaldata is FLOAT8 and data is VARCHAR(4000)
I think I covered all the details. If I missed anything, please let me know. Any input is appreciated.
Thanks
Sid