Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Atul Chojar <achojar(at)airfacts(dot)com>, pgsql-general(at)postgresql(dot)org, Li <lilian(dot)ying(at)airfacts(dot)com>, Andy Yoder <ayoder(at)airfacts(dot)com>
Subject: Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???
Date: 2009-06-11 11:00:17
Message-ID: 20090611110017.GA16553@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Thu, Jun 11, 2009 at 12:45:56PM +0200, Pavel Stehule wrote:
> generally - modification of cycle's control variable isn't good
> technique, because it's should be broken by some optimizations. When

i would argue then that these optimizations are broken, then.

> you would to modify this some variables, then use "while-loop"
> instead.

while technically possible, i find for loops much more straight forward,
and clearer to understand.

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Pavel Stehule 2009-06-11 12:17:33 Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???
Previous Message Pavel Stehule 2009-06-11 10:45:56 Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2009-06-11 11:10:47 Re: queries on xmin
Previous Message Pavel Stehule 2009-06-11 10:45:56 Re: Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???