Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgeo1-0002E0-7c for pgsql-sql@arkaria.postgresql.org; Wed, 13 Nov 2013 18:04:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vgeo0-0006Nf-Ne for pgsql-sql@arkaria.postgresql.org; Wed, 13 Nov 2013 18:04:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgenz-0006NY-NH for pgsql-sql@postgresql.org; Wed, 13 Nov 2013 18:04:43 +0000 Received: from teak.britvault.co.uk ([78.33.153.148]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vgent-0000Gk-DR for pgsql-sql@postgresql.org; Wed, 13 Nov 2013 18:04:41 +0000 Received: by teak.britvault.co.uk (Postfix, from userid 1970) id 3dKYch6f6QzBBW; Wed, 13 Nov 2013 18:04:36 +0000 (GMT) Date: Wed, 13 Nov 2013 18:04:36 +0000 To: pgsql-sql@postgresql.org Subject: Re: Function args: TEXT -vs- VARCHAR? Message-ID: <20131113180436.GA21703@teak.britvault.co.uk> References: <20131113130308.GA17439@teak.britvault.co.uk> <20131113141718.GA29223@teak.britvault.co.uk> <20131113142515.GB29223@teak.britvault.co.uk> <52838DF0.8040708@gmail.com> <20131113155113.GA26600@teak.britvault.co.uk> <6365.1384360602@sss.pgh.pa.us> <1384362845994-5778192.post@n5.nabble.com> <17777.1384365119@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17777.1384365119@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) From: skinner@britvault.co.uk (Craig R. Skinner) X-Pg-Spam-Score: -1.9 (-) 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 12:51 PM |, Tom Lane wrote: > > The full SQL type syntax is allowed for declaring a function's arguments > and return value. However, parenthesized type modifiers (e.g., the > precision field for type numeric) are discarded by CREATE FUNCTION. Thus > for example "CREATE FUNCTION foo (varchar(10)) ..." is exactly the same as > "CREATE FUNCTION foo (varchar) ...". > That note would be clear to this user. Thanks, -- 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