I am running a .sql file using psql.exe command. The command inserts data from a file into a table as is, no checks.
Problem I am facing is when even if the command gives me an error, still it completes successfully. I am running this command via java, so am not able to catch the error.
It would be of great help if you could rescue me from this situation.