exception handling and CONTINUE - Mailing list pgsql-sql

From Marcin Krawczyk
Subject exception handling and CONTINUE
Date
Msg-id 95f6bf9b0807080524i3a1f1c36nda2d0c89c2abdd56@mail.gmail.com
Whole thread Raw
Responses Re: exception handling and CONTINUE
Re: exception handling and CONTINUE
List pgsql-sql
Hi all. Can anyone tell me if there's a way to use CONTINUE clause outside the loop ?
An example :
 
FOR a IN SELECT * FROM xxx
LOOP
 
INSERT INTO yyy VALUES (a.***, ..)
 
END LOOP;
 
EXCEPTION WHEN unique_violation THEN CONTINUE;
 
I get an error saying I can't use CONTINUE outside of a loop. Is there a way around this ?
 
regards
mk

pgsql-sql by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: how to control the execution plan ?
Next
From: Alvaro Herrera
Date:
Subject: Re: exception handling and CONTINUE