public inbox for [email protected]  
help / color / mirror / Atom feed
Re: Postgres do not support tinyint?
2+ messages / 2 participants
[nested] [flat]

* Re: Postgres do not support tinyint?
@ 2025-01-08 06:26 Igor Korot <[email protected]>
  2025-01-08 06:28 ` Re: Postgres do not support tinyint? Christophe Pettus <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Igor Korot @ 2025-01-08 06:26 UTC (permalink / raw)
  To: Ron Johnson <[email protected]>; pgsql-generallists.postgresql.org <[email protected]>

Hi, Ron,

On Tue, Jan 7, 2025 at 11:24 PM Ron Johnson <[email protected]> wrote:
>
> On Wed, Jan 8, 2025 at 12:06 AM Igor Korot <[email protected]> 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/
>>
>> My data will be in a range of [0..4], and so I guess my DB table will waste
>> space, right?
>
>
> 1. It's not 1994 anymore, when 8M rows was enormous.
> 2. Record structures are padded by word size, so tinyint wouldn't matter unless you specifically ordered the fixed width columns from largest to smallest size when creating the table.
> 3. The "bit" type might serve your needs.

 I don't see the "bit" field here:
https://www.postgresql.org/docs/current/datatype-numeric.html...

Thank you..

>
> --
> Death to <Redacted>, and butter sauce.
> Don't boil me, I'm still alive.
> <Redacted> lobster!






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Postgres do not support tinyint?
  2025-01-08 06:26 Re: Postgres do not support tinyint? Igor Korot <[email protected]>
@ 2025-01-08 06:28 ` Christophe Pettus <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Christophe Pettus @ 2025-01-08 06:28 UTC (permalink / raw)
  To: Igor Korot <[email protected]>; +Cc: Ron Johnson <[email protected]>; pgsql-generallists.postgresql.org <[email protected]>



> On Jan 7, 2025, at 22:26, Igor Korot <[email protected]> wrote:
> I don't see the "bit" field here:
> https://www.postgresql.org/docs/current/datatype-numeric.html...

https://www.postgresql.org/docs/current/datatype-bit.html






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-01-08 06:28 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 06:26 Re: Postgres do not support tinyint? Igor Korot <[email protected]>
2025-01-08 06:28 ` Christophe Pettus <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox