Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUm8S-0000wR-Ef for pgsql-docs@arkaria.postgresql.org; Fri, 11 Oct 2013 23:28:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VUm8R-0002jC-NE for pgsql-docs@arkaria.postgresql.org; Fri, 11 Oct 2013 23:28:43 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUYEc-00080c-U9 for pgsql-docs@postgresql.org; Fri, 11 Oct 2013 08:38:11 +0000 Received: from mailgate.intershop.de ([195.110.60.6]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VUYES-0006kx-CH for pgsql-docs@postgresql.org; Fri, 11 Oct 2013 08:38:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intershop.de; h= mime-version:content-type:content-type:content-language :accept-language:message-id:date:date:subject:subject:from:from :received; s=20130906; t=1381480676; x=1383295077; bh=3aKeWwQWtq W7kdXH3hurJ5CscI7DwsncDGKf7WFzy/s=; b=NVkJj4YBsEwCwY2K2TQXaOVgP8 LAkAP3nLYFt3drfxcbciHtYc8yw+L31l5RO+TzLvm6N1oy5B7Yr9t3KX7MWdOna2 QptTdso7zYGBpcgsJKQ1SrUx95+4qbmaWkHhGVhsKHRxQHg1s2IDlKQgxjSgub8N RZavMTbafaH+ryO/3lY0KCzT32sg4lazXxHJcdJcgH8OnV541lYwFJktgyKbDU24 9imUFTQKHVGiRpg+jaO1MC1iFB08qC3qzBeAsBu/3ZlojW2tqwHKHm34r9yKXd7u 8kH2QtqHiJsC+JTO76cvx7XjvWyR18DZruIQTpfKocgkquNpERPuAqZ+MCpA== X-Virus-Scanned: amavisd-new at intershop.de Received: from JENCAS01.ad.intershop.net ([10.0.87.63]) by mailgate.intershop.de (8.14.7/8.14.7) with ESMTP id r9B8bs5o012607 for ; Fri, 11 Oct 2013 10:37:56 +0200 Received: from jenmbs01.ad.intershop.net ([fe80::4d04:5c70:c5d6:d5a1]) by JENCAS01.ad.intershop.net ([fe80::a45c:8522:37f2:3a34%11]) with mapi id 14.02.0342.003; Fri, 11 Oct 2013 10:37:56 +0200 From: Marc Mamin To: "'pgsql-docs@postgresql.org'" Subject: misleading lang_name case in CREATE FUNCTION doc. Thread-Topic: misleading lang_name case in CREATE FUNCTION doc. Thread-Index: Ac7GXS61bD3RutitRBOd1grc/Xx15w== Date: Fri, 11 Oct 2013 08:37:55 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.56.121] Content-Type: multipart/alternative; boundary="_000_B6F6FD62F2624C4C9916AC0175D56D880CE2A93Cjenmbs01adinter_" MIME-Version: 1.0 X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --_000_B6F6FD62F2624C4C9916AC0175D56D880CE2A93Cjenmbs01adinter_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, you might want to lowercase the language names in order to be compatible wi= th the case restriction introduced in 9.2. or add a sentence like 'when using single quotes, the names are case sensitive (with is lowercase= for most (all?) languages). regards, Marc Mamin http://www.postgresql.org/docs/9.3/static/sql-createfunction.html lang_name The name of the language that the function is implemented in. Can be SQL, C, internal, or the name of a user-defined procedural langu= age. For backward compatibility, the name can be enclosed by single quotes. http://www.postgresql.org/docs/current/static/release-9-2.html No longer forcibly lowercase procedural language names in CREATE FUNCTION (= Robert Haas) While unquoted language identifiers are still lowercased, strings and quoted identifiers are no longer forcibly down-cased. Thus for example CREATE FUNCTION ... LANGUAGE 'C' will no longer work; it must be spelled 'c', or better omit the quotes. --_000_B6F6FD62F2624C4C9916AC0175D56D880CE2A93Cjenmbs01adinter_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
you might want to lowercase the language names in order to be compatib= le with the case restriction introduced in  9.2.
or add a sentence like
'when using single quotes, the names  are case sensitive (with is= lowercase for most (all?) languages).
 
regards,
 
Marc Mamin
 
 
 
lang_name
 
    The name of the language that the function is imple= mented in.
    Can be SQL, C, internal, or the name of a user-defi= ned procedural language.
    For backward compatibility, the name can be enclose= d by single quotes.
 
 
 
No longer forcibly lowercase procedural language names in CREATE FUNCT= ION (Robert Haas)
 
While unquoted language identifiers are still lowercased,
strings and quoted identifiers are no longer forcibly down-cased.
Thus for example CREATE FUNCTION ... LANGUAGE 'C' will no longer work;=
it must be spelled 'c', or better omit the quotes.
 
 
 
--_000_B6F6FD62F2624C4C9916AC0175D56D880CE2A93Cjenmbs01adinter_--