Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2qnY-006iap-RM for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 11:09:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s2qnV-008JqD-QN for pgsql-general@arkaria.postgresql.org; Fri, 03 May 2024 11:09:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2qnU-008Jpt-0h for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 11:09:50 +0000 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s2qnR-001EOP-V1 for pgsql-general@lists.postgresql.org; Fri, 03 May 2024 11:09:47 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 0774211400F6; Fri, 3 May 2024 07:09:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 03 May 2024 07:09:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1714734584; x=1714820984; bh=xXAB3kKZHB9RL2nARUVaC6DqcKGrfGUQE0TYMemMs3w=; b= Z9rgdI+KTVoLBBV8ICDSRdWi1Y1+nVD76J5TH1qZT4KHuf28Kl2pUIFwj60WJO4L XblNmtFRwBTMIfZvetjfF1OJWyX6HvAAlM7gCws1CfpvrXWy7/M422ZUKV/zAwsp KkzAGqimGO75VtwIwaw7kYwzNE/kxBgZRFgEOMK8xAGgywG/0awQZzAywjDDTWfA imtKKoCoqcKAmzOQku+bGc12td1v7cyyA1eXSjq+cc9cRQMgRiKak4+MoO1lFTwP OVb2xF1HciS0khQ434PGfp6DiStRlgWYJhiZpjXheOX372Xn2wD0LqjzcibUDcu5 NvN2SJOOkih4QO2KhuE5Lw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1714734584; x= 1714820984; bh=xXAB3kKZHB9RL2nARUVaC6DqcKGrfGUQE0TYMemMs3w=; b=V JxZ7i+z2u1/IjeG4jX9PTm9jNJwLy0rSODi0J61rjfpJlV4cwYpNz+nYcxsc4BaF irllvtI7HvIiNxDXrTzNI4g4fNdLoZ9DYcbnX/Yxu50rO806eWCeHqqgH/cTWHUh fyTl0MvyQoFDBwf3AVZ7b03O0QzNjObYAUwC63oXYCH1uiNJeW+OL8oXvyYy6d1C hgIySijssBjJuMi8BdMYybHk6X53Hf1/UA+ZtaG//vSwHIJL8biCFjVll5j7Y1Hb ghEpPAX+uTxU6W1NBC8hgU6tMcfX1reKB87D776+q8KvGsFr5OqzTwfWOquW86lh mVWm0aoXeYxQ5WoHGmE6g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvtddgfeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqe enucggtffrrghtthgvrhhnpedugfejffefleefvdegvdejvdeiheevgffhjefgudfhvedv jeevfeehteelgfevfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 3 May 2024 07:09:43 -0400 (EDT) Message-ID: <17582807-412b-406e-9504-f0e1089888a1@eisentraut.org> Date: Fri, 3 May 2024 13:09:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Identity column data type difference in PostgreSQL and Oracle To: Muhammad Ikram , PostgreSQL General References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 03.05.24 12:57, Muhammad Ikram wrote: > Tables which have an identity column in Oracle when migrated to > PostgreSQL, the data type of Identity column is changed to bigint from > number by the tools. This causes the size of column to be reduced to max > value supported by bigint which is way lower than the oracle  number max. Sequences in PostgreSQL are limited to bigint, there is nothing that can be changed about that. But you are approximately the first person to complain that the range of ids provided by bigint is too small, so maybe it's worth reconsidering whether it would work for you. If it really is too small, maybe a uuid would work. But yes, you'll need to make some adjustments to the rest of your database or application code if you make such changes.