Re: Postgres do not support tinyint?

Поиск
Список
Период
Сортировка
Искать
От
Adrian Klaver
Тема
Re: Postgres do not support tinyint?
Дата
Msg-id
13a10c87-7ee8-4360-a401-6871fb8104cf@aklaver.com
Ответ на
Список
Дерево обсуждения
Postgres do not support tinyint? Igor Korot <ikorot01@gmail.com>
Re: Postgres do not support tinyint? Adrian Klaver <adrian.klaver@aklaver.com>
Re: Postgres do not support tinyint? Ron Johnson <ronljohnsonjr@gmail.com>
Re: Postgres do not support tinyint? Igor Korot <ikorot01@gmail.com>
Re: Postgres do not support tinyint? Christophe Pettus <xof@thebuild.com>
Re: Postgres do not support tinyint? "David G. Johnston" <david.g.johnston@gmail.com>
Re: Postgres do not support tinyint? Christophe Pettus <xof@thebuild.com>
Re: Postgres do not support tinyint? Igor Korot <ikorot01@gmail.com>
Re: Postgres do not support tinyint? Christophe Pettus <xof@thebuild.com>
Re: Postgres do not support tinyint? Igor Korot <ikorot01@gmail.com>
Re: Postgres do not support tinyint? Vladlen Popolitov <v.popolitov@postgrespro.ru>
Re: Postgres do not support tinyint? Dominique Devienne <ddevienne@gmail.com>
Re: Postgres do not support tinyint? Vladlen Popolitov <v.popolitov@postgrespro.ru>
Re: Postgres do not support tinyint? shammat@gmx.net
Re: Postgres do not support tinyint? Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Postgres do not support tinyint? Tom Lane <tgl@sss.pgh.pa.us>
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



В списке pgsql-general по дате отправления
От: Igor Korot
Дата:
От: Ron Johnson
Дата:
FAQ