1-byte integers

Поиск
Список
Период
Сортировка
От stig erikson
Тема 1-byte integers
Дата
Msg-id ciflkp$pjh$1@news.hub.org
обсуждение исходный текст
Ответы Re: 1-byte integers
Список 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 по дате отправления:

Предыдущее
От: "Sandeep Gaikwad"
Дата:
Сообщение: How to check postgres running or not ?
Следующее
От: "Omkar Rath"
Дата:
Сообщение: Sequence of SQL command execution involving triggers and stored procedures.