Обсуждение: pgsql: Revert fd2ace802811c333b0b4e1a28b138fd4774745f3

Поиск
Список
Период
Сортировка

pgsql: Revert fd2ace802811c333b0b4e1a28b138fd4774745f3

От
Bruce Momjian
Дата:
Revert fd2ace802811c333b0b4e1a28b138fd4774745f3

Seems we want to document '=' plpgsql assignment instead.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d84c584ece6d882c3a45cacd056ca8635e963996

Modified Files
--------------
doc/src/sgml/plpgsql.sgml |   30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)


Re: pgsql: Revert fd2ace802811c333b0b4e1a28b138fd4774745f3

От
Andrew Dunstan
Дата:
On 01/11/2014 02:01 PM, Bruce Momjian wrote:
> Revert fd2ace802811c333b0b4e1a28b138fd4774745f3
>
> Seems we want to document '=' plpgsql assignment instead.
>

It's less than best practice, IMNSHO, and if it's documented I'd prefer
it to be noted that it's deprecated and inconsistent with the upstream
languages.

cheers

andrew


Re: pgsql: Revert fd2ace802811c333b0b4e1a28b138fd4774745f3

От
Tom Lane
Дата:
Andrew Dunstan <andrew@dunslane.net> writes:
> On 01/11/2014 02:01 PM, Bruce Momjian wrote:
>> Seems we want to document '=' plpgsql assignment instead.

> It's less than best practice, IMNSHO, and if it's documented I'd prefer
> it to be noted that it's deprecated and inconsistent with the upstream
> languages.

Well, as was noted in the other thread, that all depends on which
languages you think are "upstream" --- SQL itself, and SQL/PSM, do
not use ":=".  I'm fine with saying that := is the preferred spelling,
but I think that calling "=" deprecated is overstating the case.

            regards, tom lane