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 1tVOV9-007wQg-DG for pgsql-general@arkaria.postgresql.org; Wed, 08 Jan 2025 05:21:08 +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 1tVOV8-00Cqqp-Mh for pgsql-general@arkaria.postgresql.org; Wed, 08 Jan 2025 05:21:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVOV7-00CqpC-Bm for pgsql-general@lists.postgresql.org; Wed, 08 Jan 2025 05:21:05 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVOV1-000THb-0S for pgsql-general@lists.postgresql.org; Wed, 08 Jan 2025 05:21:04 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 6C9A9114016C; Wed, 8 Jan 2025 00:20:57 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Wed, 08 Jan 2025 00:20:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; 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=fm1; t=1736313657; x=1736400057; bh=W7NCvHgCP2ZpOHuUdE6lcGL06Y/HVjnU8pM3Sb/H9B0=; b= SAk6i7XtulC8y0XDkqmSm79x7X6S1QJZgXinIj/H4e5ynIZleDfuaEU6z+bjCONN 8R55p0Plv5j+a97CInoXwx8P+YQ+ivWlNAoZMTZcmuykNayt8XG0lpgMwOnwW67z blCfDtRm1+g3tPuf86JndLc/X+qP2QUX/UM/n/au0Q1hPY5NAvqxryNJQkqY3bgy V7EkWPdfTTS7RzDBwZLBsHzVYAf+ifdMCqWK+jaX1R6s+PZy15c0Q19FDf8/bVvR 9nnX9HN4bkc7wojkocO45qz3kvH+UQY8lKGqFFs2bl7Qlf1yowXLF0aiHe5R7V92 40Tpsl1CqyFJykA+wjntqw== 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-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736313657; x=1736400057; bh=W 7NCvHgCP2ZpOHuUdE6lcGL06Y/HVjnU8pM3Sb/H9B0=; b=bSDZ0mvKxvxrjIQPj JT7Sw24MujwchCcTU+VGOBX4/I3QGx0OOC+tyn7dmkESu0NOy+zhYnNVsy8BJBEI e9x6SzpwZJkh1HvMuVQsU7Y9r1J6ALBRFC58MMKYBnGWJLQ/n6AA9Qmi/lyynNXR mOvI3xLZzTJ8sI13uwoCXgGgiaLfXEtU8K49B64MP4JQa2q0Rii5DkkrO4JoZZyH zUIfx/pKRx1V+Ib+rm2qOePH7ia80kYDduRMUJv6PMxXhhxN35iTXq8KFdQ09Q+o MxonfPlu7yOu6cjZ0vU38tphyV251DC9Z+irzh+rb9cRMtmRGZ5o+JaHzHzUuzgP 9R+uQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegfedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeekfeehuddvjeeigfeifeej tdduudffledvfeelheeftdeiffeugfdvkeelgedtvdenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhkohhrohht tddusehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslh hishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Jan 2025 00:20:56 -0500 (EST) Message-ID: <13a10c87-7ee8-4360-a401-6871fb8104cf@aklaver.com> Date: Tue, 7 Jan 2025 21:20:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres do not support tinyint? To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/7/25 21:06, Igor Korot wrote: > Hi, ALL, > According to https://www.postgresql.org/docs/9.1/datatype-numeric.html, the > smallest numeric type supports numbers from -32768 to 32767/ In this case it does not matter, but you should not consult documentation that is for a version(9.1) that is ~8 years past EOL. Go here: https://www.postgresql.org/docs/ and click on Current or the version you are actually using. > > My data will be in a range of [0..4], and so I guess my DB table will waste > space, right? Yes, though is that actually going to be an issue? > > Thank you. > > -- Adrian Klaver adrian.klaver@aklaver.com