From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> |
Cc: | pgsql-patches(at)postgresql(dot)org |
Subject: | Re: Continue stmt for plpgsql |
Date: | 2005-06-21 08:51:19 |
Message-ID: | 42B7D507.8020600@samurai.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
Pavel Stehule wrote:
> Attached patch provide continue stmt in plpgsql language. Continue stmt
> start new step in any loop stmt. If stmt continue is in begin end block,
> then find first outer loop (per recent discussion).
Attached is a revised patch. I didn't see anything major that needed to
be corrected, but there were some minor cleanups to be made. I also
clarified the error message when a CONTINUE is specified outside a loop
(although I wasn't quite sure what error message to use: SYNTAX_ERROR
seems a bit weird, as the problem isn't detected until the end of the
function's execution. I'm using PLPGSQL_ERROR at the moment, but
suggestions for a better choice are welcome).
Barring any objections, I'll apply this tomorrow.
-Neil
Attachment | Content-Type | Size |
---|---|---|
continue-7.diff | text/x-patch | 29.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Pflug | 2005-06-21 09:40:58 | Re: Server instrumentation |
Previous Message | ITAGAKI Takahiro | 2005-06-21 05:43:57 | Re: [PATCHES] O_DIRECT for WAL writes |