Re: [PATCH] 8.5 plpgsql change for named notation: treat word following AS keyword as label v2

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Steve Prentice <prentice(at)cisco(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] 8.5 plpgsql change for named notation: treat word following AS keyword as label v2
Date: 2009-05-22 14:40:32
Message-ID: 4A16B960.3020801@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5/21/09 6:44 PM, Alvaro Herrera wrote:
> Josh Berkus wrote:
>>> The patch adds the "AS" keyword to the plpgsql grammar and doesn't
>>> assign an expression parameter to the sql construct if the scalar
>>> follows the AS keyword.
>> Would it be possible to also support "=" as well as "as"? I believe
>> that SQL Server uses "=" exclusively, and supporting that syntax would
>> help people port TSQL-based applications.
>
> Would this be best served by implementing PL/TSQL?

Passing variables takes place *outside* of the PL.

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Izmailov 2009-05-22 15:27:01 information_schema.columns changes needed for OLEDB
Previous Message Andres Freund 2009-05-22 13:48:21 Re: RFD: Discarded tuple count for SeqScan nodes in EXPLAIN ANALYZE