Re: [HACKERS] psql and libpq fixes - Mailing list pgsql-hackers

From Brian E Gallew
Subject Re: [HACKERS] psql and libpq fixes
Date
Msg-id 200002101602.LAA18256@smtp3.andrew.cmu.edu
Whole thread Raw
In response to Re: [HACKERS] psql and libpq fixes  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] psql and libpq fixes  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [HACKERS] psql and libpq fixes  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
Re: [HACKERS] psql and libpq fixes  (Michael Meskes <meskes@postgreSQL.org>)
List pgsql-hackers
Then <tgl@sss.pgh.pa.us> spoke up and said:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >> This does bring up a thought --- should psql's kill-the-script-on-error
> >> option perhaps zap the script only for errors committed outside of a
> >> transaction block?
> 
> But on third thought, probably the thing that would be really useful
> for "expected errors" is if there is a backslash-command that turns on
> or off the kill-on-error behavior.  (The command line switch would
> merely set the initial state of this flag.)  This way, a script could
> use the option in an intelligent fashion:

Urhm, wouldn't a better idea be to have something like Ingres' "ON
ERROR" and "ON WARNING" settings?  In Ingres esqlc, you can create
functions and then tell Ingres to execute them in the even of a
warning or error.  Also, you can say "ON ERROR CONTINUE" and errors
will then be returned to the application as a status, but otherwise
ignored.

-- 
=====================================================================
| JAVA must have been developed in the wilds of West Virginia.      |
| After all, why else would it support only single inheritance??    |
=====================================================================
| Finger geek@cmu.edu for my public key.                            |
=====================================================================

pgsql-hackers by date:

Previous
From: Horák Daniel
Date:
Subject: RE: [HACKERS] Small update for WinNT port
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] psql and libpq fixes