Re: Proposal - Continue stmt for PL/pgSQL

From: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Proposal - Continue stmt for PL/pgSQL
Date: 2005-06-16 19:14:34
Message-ID: Pine.LNX.4.44.0506162107230.13602-100000@kix.fsv.cvut.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 16 Jun 2005, Tom Lane wrote:

> Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz> writes:
> > BEGIN
> > CONTINUE WHEN i = 10;
> > RAISE NOTICE '---1---';
> > END;
>
> I find that really ugly and confusing. If we add a CONTINUE it's only
> sensible to allow it inside a loop --- otherwise it's just a nonstandard
> spelling of EXIT.
>

I played too much :-). But, there is something wich can complicate
implementation, if I disallow it inside block.

for ... LOOP
begin
continue;
end
end loop;

if I can use continue in begin and block I have easy rules for
implementation. I have to first find any outside loop. But I think it's no
really problem

Pavel Stehule

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2005-06-16 19:44:06 Re: Proposal - Continue stmt for PL/pgSQL
Previous Message Pavel Stehule 2005-06-16 19:06:57 Re: Proposal - Continue stmt for PL/pgSQL