Re: Strange behavior of "=" as assignment operator - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Strange behavior of "=" as assignment operator
Date
Msg-id CAFj8pRAbLJ7_NGgnQ5UFDBrQ36B8GbsVJn7PJapm=1xmEDagAw@mail.gmail.com
Whole thread Raw
In response to Re: Strange behavior of "=" as assignment operator  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
2013/6/1 Tom Lane <tgl@sss.pgh.pa.us>:
> Stephen Frost <sfrost@snowman.net> writes:
>> * Moshe Jacobson (moshe@neadwerx.com) wrote:
>>> Any PG committers who can change this in 9.3?
>
>> It will certainly not be changed for 9.3.
>
> IMO, if we do anything about this at all, it should be to document the
> "=" option not remove it.  If we change it, the squawks from people who
> were (perhaps unintentionally) depending on the current behavior will
> outnumber the plaudits from people who think that such a change is a
> good idea by several orders of magnitude.

Moving from undocumented feature to documented feature is solution.
But I don't like it.

This is not only one use case. Then we should to document possibility
GET DIAGNOSTICS var := ident and some others. And this can be strong
problem for people who start on Postgres and would to use Oracle.

I don't propose remove this undocumented feature in next few cycles.
But if we will have integrated plpgsql_check_function, then we can
raise a warning 3 cycles, and then we can drop it. For almost all
cases we can provide simple migration tool.

similar issue is ELSIF and ELSEIF (although it is documented).

Regards

Pavel

>
>                         regards, tom lane
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Strange behavior of "=" as assignment operator
Next
From: David Johnston
Date:
Subject: Re: Strange behavior of "=" as assignment operator