Re: Postgres do not support tinyint?

Christophe Pettus <xof@thebuild.com>

From: Christophe Pettus <xof@thebuild.com>
To: "David G. Johnston" <david.g.johnston@gmail.com>
Cc: Ron Johnson <ronljohnsonjr@gmail.com>, "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-01-08T06:49:08Z
Lists: pgsql-general

> On Jan 7, 2025, at 22:44, David G. Johnston <david.g.johnston@gmail.com> wrote:
> 
> You suggest a type with a minimum size of 6 bytes when the complaint is that the otherwise acceptable 2 byte data type is too large?

Although it's not clear from the OP's question, if there are going to be a significant number of these 3-bit fields, packing them into a bitstring might be a way forward.  It's a good solution for tables with a ton of booleans.