Re: Fwd: Psql.exe error logging

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Aman Rathi <aman(dot)rathi0904(at)gmail(dot)com>
Cc: PostgreSQL www <pgsql-www(at)postgresql(dot)org>
Subject: Re: Fwd: Psql.exe error logging
Date: 2016-02-25 16:33:40
Message-ID: CAKFQuwY=TDMK=MUBFV4PZbuysWkSi2-EBdDG0nrc34gvOX4=ow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Wed, Feb 24, 2016 at 11:24 PM, Aman Rathi <aman(dot)rathi0904(at)gmail(dot)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

​http://www.postgresql.org/docs/current/static/app-psql.html

David J.

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Kevin Grittner 2016-02-25 19:28:08 Re: Wiki no longer showing recent changes
Previous Message Thom Brown 2016-02-25 15:14:01 Wiki no longer showing recent changes