On_error_stop - Mailing list pgsql-novice

From Ashish Karalkar
Subject On_error_stop
Date
Msg-id 00a601c7bd3a$f20dec20$170211ac@LIONKING.COM
Whole thread Raw
Responses Re: On_error_stop  ("Sibte Abbas" <sibtay@gmail.com>)
List pgsql-novice
Hello All,
 
I want to run few DDL's from scripts and want the script to halt if any error ocuurs, this can be done by on_error_stop
 
But what I want to do is to display a message something like
 
If on_error_stop =1
 {
    echo "DDL failed";
    exit();
}
 
else "DDL passed";
 
end
 
is there any way to do this?
 
Thanks in advance
Ashish...
 

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Schema Problem
Next
From: callewaert.nico@telenet.be
Date:
Subject: Books on server programming