on error resume next

From: Jasmin Dizdarevic <jasmin(dot)dizdarevic(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: on error resume next
Date: 2009-07-31 15:24:26
Message-ID: a0eee4d40907310824h3fd0df14p75b633e38fd2d203@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hi,

can i use savepoints to realize something like "on error resume next"?

i've got the following situation:

begin;
1. create view user001.accounts as select * from base.accounts;
2. grant select on user001.accounts to loginuser001;
commit;

begin;
3. create view user002.accounts as select * from base.accounts;
4. grant select on user002.accounts to loginuser002;
commit;

my goal is to avoid execution stop, if one of the transactions fail.
let's say line 1 throws an error it should go further to line 3.

any ideas?

thank you.

jasmin

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rob Sargent 2009-07-31 15:50:02 Re: SQL report
Previous Message Emi Lu 2009-07-31 14:05:49 Re: Show CAS, USD first; the left ordered by currency name