Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TohLL-0006vk-0O for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2012 21:19:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TohLJ-0004yu-U0 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Dec 2012 21:19:49 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TohLI-0004yp-M9 for pgsql-hackers@postgresql.org; Fri, 28 Dec 2012 21:19:48 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TohLG-00052l-7T for pgsql-hackers@postgresql.org; Fri, 28 Dec 2012 21:19:48 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id E2FA4D08241; Fri, 28 Dec 2012 21:19:43 +0000 (UTC) Message-ID: <50DE0CFD.6060508@gmx.net> Date: Fri, 28 Dec 2012 16:19:57 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Pavel Stehule CC: PostgreSQL Hackers Subject: Re: proposal: ANSI SQL 2011 syntax for named parameters References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 12/28/12 11:22 AM, Pavel Stehule wrote: > I am not sure, but maybe is time to introduce ANSI SQL syntax for > functions' named parameters > > It is defined in ANSI SQL 2011 > > CALL P (B => 1, A => 2) > > instead PostgreSQL syntax CALL ( B := 1, A := 2) I agree it's probably time. > * should we support both - probably yes yes > * how long time we will support pg syntax? - 2..5..ever years > > * when we mark pg syntax as obsolete? > > * when we remove pg syntax? The := syntax was introduced in 9.0, so it is by now well entrenched. I don't think we should remove it at all any time soon. As for documentation, just state how it is. The standard syntax is =>, but because of $various_issues, older versions only support :=. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers