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

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: 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 04:48:57
Message-ID: 162867790906102148s70b07c24tb18e5660686f3be@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hello

2009/6/10 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> "Atul Chojar" <achojar(at)airfacts(dot)com> writes:
>> So in 8.3.7, the incrementing of the for-loop variable "idx" is being
>> ignored; that is not the case in 8.2.7. Is this a new feature of 8.3.7 or a
>> bug?
>
> It's the new implementation.  Depending on unspecified implementation
> details is a good way to have broken code.
>
>                        regards, tom lane
>

we should to mark control varables as read-only?

regards
Pavel Stehule

> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2009-06-11 05:40:58 Re: HW recommendatons
Previous Message Kevin Kempter 2009-06-11 00:19:04 HW recommendatons

Browse pgsql-general by date

  From Date Subject
Next Message Michael Cheselka 2009-06-11 04:49:26 Re: [GENERAL] "Rails and PostgreSQL" now up on media.postgresql.org
Previous Message Josh Berkus 2009-06-11 04:38:11 Re: [GENERAL] "Rails and PostgreSQL" now up on media.postgresql.org