Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5GFS-0000Ip-Lm for pgsql-docs@arkaria.postgresql.org; Tue, 24 May 2016 17:36:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5GFS-0001S2-8d for pgsql-docs@arkaria.postgresql.org; Tue, 24 May 2016 17:36:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5GF6-00012n-Fn for pgsql-docs@postgresql.org; Tue, 24 May 2016 17:35:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5GF3-0007RB-2G for pgsql-docs@postgresql.org; Tue, 24 May 2016 17:35:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4OHZcWJ005133; Tue, 24 May 2016 13:35:38 -0400 From: Tom Lane To: rapg12@gmail.com cc: pgsql-docs@postgresql.org Subject: Re: incorrect data type in function In-reply-to: <20160521140046.22591.24672@wrigleys.postgresql.org> References: <20160521140046.22591.24672@wrigleys.postgresql.org> Comments: In-reply-to rapg12@gmail.com message dated "Sat, 21 May 2016 14:00:46 -0000" Date: Tue, 24 May 2016 13:35:38 -0400 Message-ID: <5132.1464111338@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) 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 rapg12@gmail.com writes: > The data types in the function parameter and the returned type were seems > typed incorrectly or missed typo ... in ORACLE there is no varchar, but > there is varchar2 According to what I can find on the web, Oracle treats varchar and varchar2 as interchangeable type names, but they say they might someday fix varchar to be spec-compliant about distinguishing null from empty strings. (I'll believe that when I see it...) So our examples are not wrong, but nonetheless this is a good suggestion because changing them creates an opportunity to talk about the general porting problem of needing to translate Oracle type names to Postgres. I've pushed a patch based on that: http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=23f11dc21b0135702a2852aac927bdc4f9d69cef Thanks for the suggestion! regards, tom lane -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs