Postgres do not support tinyint?

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Postgres do not support tinyint?
Date: 2025-01-08 05:06:10
Message-ID: CA+FnnTzfvgVdptHcLBFPrq_Q+xPes-Bhjiw_xFiooq4VqhqyrQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, ALL,
According to https://www.postgresql.org/docs/9.1/datatype-numeric.html, the
smallest numeric type supports numbers from -32768 to 32767/

My data will be in a range of [0..4], and so I guess my DB table will waste
space, right?

Thank you.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2025-01-08 05:20:56 Re: Postgres do not support tinyint?
Previous Message Daniel Frey 2025-01-07 15:28:37 Re: Pipeline Mode vs Single Row Mode / Chunked Rows Mode