Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hjV9h-0001PD-AZ for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2019 20:50:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hjV9e-0000hd-3G for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2019 20:50:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hjV9d-0000aZ-KJ for pgsql-general@lists.postgresql.org; Fri, 05 Jul 2019 20:50:01 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hjV9a-0000vf-Gz for pgsql-general@postgresql.org; Fri, 05 Jul 2019 20:49:59 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 9F201154A85FF for ; Fri, 5 Jul 2019 13:49:57 -0700 (MST) Date: Fri, 5 Jul 2019 13:49:57 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1562359797649-0.post@n3.nabble.com> In-Reply-To: <25356.1562357780@sss.pgh.pa.us> References: <1562269287792-0.post@n3.nabble.com> <9dcaef4ca4f464078c22d4658eabd6baf43f9940.camel@cybertec.at> <1562326734199-0.post@n3.nabble.com> <81ddd3d0-bfb0-f52e-318c-622ab8e9fa9b@aklaver.com> <1562356860333-0.post@n3.nabble.com> <25356.1562357780@sss.pgh.pa.us> Subject: Re: Converting to identity columns with domains on PK columns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sorry, the example I was thinking was this one, which works on Firebird, using its way of writing, obviously. create function myproc(id integer) returns I32 language sql as 'select $1'; On postgres ERROR: return type mismatch in function declared to return i32 What I mean is that Firebird sees I32 and integer as the same, Postgres doesn=C2=B4t. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml