Re: PL/pgSQL 'i = i + 1' Syntax

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: all(at)adv(dot)magwien(dot)gv(dot)at, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PL/pgSQL 'i = i + 1' Syntax
Date: 2006-05-17 14:27:15
Message-ID: 446B32C3.6090403@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
>>> By the way, PL/SQL screams if you want to do an assignment with '='.
>>> But I guess that the current behaviour of PL/pgSQL should not reflect
>>> that to maintain backward compatibility, right?
>>>
>
>
>> I think it should. The current behaviour is undocumented and more than icky.
>>
>
> The lack of documentation is easily fixed ;-). I don't think this is
> icky enough to justify breaking all the existing functions we'd
> undoubtedly break if we changed it.
>
>

We have tightened behaviour in ways much harder to fix in the past, e.g.
actually following UTF8 rules. Fixing breakage in this case would be
pretty trivial, and nobody has any real right to expect the current
behaviour to work.

But I won't be surprised to be in a minority on this ....

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-17 14:27:54 Re: Return results for PQexec vs PQexecP*
Previous Message Tom Lane 2006-05-17 14:25:01 Re: Compression and on-disk sorting