1-byte integers - Mailing list pgsql-sql

From stig erikson
Subject 1-byte integers
Date
Msg-id ciflkp$pjh$1@news.hub.org
Whole thread Raw
Responses Re: 1-byte integers  (Greg Stark <gsstark@mit.edu>)
List pgsql-sql
how can i specify an integer to be one byte byte or even 4 bits long?
int1, int(1), tinyint are nowhere to be seen.
smallest i can find is smallint that is 2 bytes.

in a table i will have a few columns with values between 0 and 15, so 
optimally i am looking for some kind of  unsigned 4-bits, or (un)signed 
integer (1-byte).

i can live with smallint for a while but estimate a few millions of rows 
in the table to be a reality soon, in such cases every byte matters.

is there some

stig


pgsql-sql by date:

Previous
From: "Sandeep Gaikwad"
Date:
Subject: How to check postgres running or not ?
Next
From: "Omkar Rath"
Date:
Subject: Sequence of SQL command execution involving triggers and stored procedures.