Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgcix-00053H-RH for pgsql-sql@arkaria.postgresql.org; Wed, 13 Nov 2013 15:51:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vgcix-00075Y-3t for pgsql-sql@arkaria.postgresql.org; Wed, 13 Nov 2013 15:51:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgciw-00075R-1m for pgsql-sql@postgresql.org; Wed, 13 Nov 2013 15:51:22 +0000 Received: from teak.britvault.co.uk ([78.33.153.148]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgcio-0000OH-Ke for pgsql-sql@postgresql.org; Wed, 13 Nov 2013 15:51:20 +0000 Received: by teak.britvault.co.uk (Postfix, from userid 1970) id 3dKVfn5lp5zBBW; Wed, 13 Nov 2013 15:51:13 +0000 (GMT) Date: Wed, 13 Nov 2013 15:51:13 +0000 To: pgsql-sql@postgresql.org Subject: Re: Function args: TEXT -vs- VARCHAR? Message-ID: <20131113155113.GA26600@teak.britvault.co.uk> References: <20131112181744.GA7522@teak.britvault.co.uk> <20131113130308.GA17439@teak.britvault.co.uk> <20131113141718.GA29223@teak.britvault.co.uk> <20131113142515.GB29223@teak.britvault.co.uk> <52838DF0.8040708@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52838DF0.8040708@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: skinner@britvault.co.uk (Craig R. Skinner) X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 2013-11-13 Wed 06:34 AM |, Adrian Klaver wrote: > > http://www.postgresql.org/docs/9.3/interactive/sql-createfunction.html > " > Notes > > The full SQL type syntax is allowed for input arguments and return > value. However, some details of the type specification (e.g., the > precision field for type numeric) are the responsibility of the > underlying function implementation and are silently swallowed (i.e., > not recognized or enforced) by the CREATE FUNCTION command. > " > That's rather vague..... "... some details ..." An explicit table of datatype & what's "silently swallowed" would be valuable to clarify this topic that's said to be often repeatedly asked. Cheers, -- Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7 -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql