Re: Fwd: Psql.exe error logging - Mailing list pgsql-www

From David G. Johnston
Subject Re: Fwd: Psql.exe error logging
Date
Msg-id CAKFQuwY=TDMK=MUBFV4PZbuysWkSi2-EBdDG0nrc34gvOX4=ow@mail.gmail.com
Whole thread Raw
In response to Fwd: Psql.exe error logging  (Aman Rathi <aman.rathi0904@gmail.com>)
Responses Re: Fwd: Psql.exe error logging
List pgsql-www
On Wed, Feb 24, 2016 at 11:24 PM, Aman Rathi <aman.rathi0904@gmail.com> wrote:
Hi,

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.



​psql --set=ON_ERROR_STOP=1

David J.

pgsql-www by date:

Previous
From: Aman Rathi
Date:
Subject: Fwd: Psql.exe error logging
Next
From: Kevin Grittner
Date:
Subject: Re: Wiki no longer showing recent changes