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 1hoABd-0005Ri-O2 for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jul 2019 17:27:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hoABb-00052P-9V for pgsql-admin@arkaria.postgresql.org; Thu, 18 Jul 2019 17:27:19 +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 1hoABa-0004tE-UH for pgsql-admin@lists.postgresql.org; Thu, 18 Jul 2019 17:27:18 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hoABX-0000On-K2 for pgsql-admin@lists.postgresql.org; Thu, 18 Jul 2019 17:27:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7D3639FFEC; Thu, 18 Jul 2019 17:27:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hm5eUVxo7AKa; Thu, 18 Jul 2019 17:27:12 +0000 (UTC) Received: from [10.122.47.135] (184-96-188-23.hlrn.qwest.net [184.96.188.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 9F0A4A0385; Thu, 18 Jul 2019 17:12:54 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: How do I add/edit 'digit' property into PGAdmin4 ? From: Scott Ribe In-Reply-To: <503592305.1895694.1563463763702@mail.yahoo.com> Date: Thu, 18 Jul 2019 11:12:53 -0600 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <018F5702-CA8B-4311-AD54-30B957C5B2EF@elevated-dev.com> References: <503592305.1895694.1563463763702@mail.yahoo.com> To: Karen Goh X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Jul 18, 2019, at 9:29 AM, Karen Goh wrote: >=20 > I need help to change an existing column in my table from text to = 'digit' type. >=20 > However, I can't find any numeric or integer property type. >=20 > The digit type should contains numbers only but it is not for = calculation. It is a zipcode that has 6 digit numbers. There is no digit type. I assume your 6-digit numbers can have leading = 0s which need to be preserved, so an integer type won't work. Perhaps = what you need is a text type with a check constraint to limit it to = digits.=