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 1hjUOP-0007hV-P0 for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2019 20:01:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hjUOO-0004Zg-2i for pgsql-general@arkaria.postgresql.org; Fri, 05 Jul 2019 20:01:12 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hjUON-0004Rn-N9 for pgsql-general@lists.postgresql.org; Fri, 05 Jul 2019 20:01:11 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hjUOE-0005HE-Nv for pgsql-general@postgresql.org; Fri, 05 Jul 2019 20:01:10 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 59FA7154A542C for ; Fri, 5 Jul 2019 13:01:00 -0700 (MST) Date: Fri, 5 Jul 2019 13:01:00 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1562356860333-0.post@n3.nabble.com> In-Reply-To: <81ddd3d0-bfb0-f52e-318c-622ab8e9fa9b@aklaver.com> References: <1562269287792-0.post@n3.nabble.com> <9dcaef4ca4f464078c22d4658eabd6baf43f9940.camel@cybertec.at> <1562326734199-0.post@n3.nabble.com> <81ddd3d0-bfb0-f52e-318c-622ab8e9fa9b@aklaver.com> 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 Adrian, on Firebird if you create a table or procedure with fields or param= s declared with domains, they can be used with those domains or with their base type. On Postgres I32 is not equal to integer. create procedure myproc(id i32) returns(x i32) as ...=20 select * from myproc(cast(5 as integer)) -- works on firebird. On Postgres it doesn=C2=B4t because that procedure or function expects for a I32 and no= t a integer. -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.ht= ml