Re: PL/pgSQL 'i = i + 1' Syntax - Mailing list pgsql-hackers

From Albe Laurenz
Subject Re: PL/pgSQL 'i = i + 1' Syntax
Date
Msg-id 52EF20B2E3209443BC37736D00C3C138087C011E@EXADV1.host.magwien.gv.at
Whole thread Raw
In response to PL/pgSQL 'i = i + 1' Syntax  (David Wheeler <david@kineticode.com>)
Responses Re: PL/pgSQL 'i = i + 1' Syntax
List pgsql-hackers
Josh Berkus wrote:
>> If you only care about Oracle to PostgreSQL (and who wouldn't?), then  
>> it in fact seems desirable for PL/pgSQL to be a superset of PL/SQL.
>
> I agree with David here.   We care about the ability to migrate PL/SQL -->
> PL/pgSQL.   We do *not* care about the ability to migrate PL/pgSQL -->
> PL/SQL.  So supporting extra syntax which Oracle doesn't ... as long as
> the Oracle syntax still works ... is in fact a good thing.

I cannot feel good about deliberately introducing incompatibilities.
We are not Microsoft, are we?

If assignment by '=' gets documented and known, it will get used.
This in turn will make PL/pgSQL less familiar for PL/SQL coders.
And that will make them more reluctant to change over.

I think it would be best to get a compile error when '=' is used for
assignment, but if that's too much effort, I believe that the current
behaviour is acceptable as long as it doesn't get documented and
'good practice'.

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: PL/pgSQL 'i = i + 1' Syntax
Next
From: Michael Meskes
Date:
Subject: Re: Desperately Seeking Mentors -- Right Now!