pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
single byte unsigned integer datatype 2+ messages / 2 participants [nested] [flat]
* single byte unsigned integer datatype @ 2001-01-14 15:16 Joe Conway <jconway2@home.com> 2001-01-14 15:49 ` Re: single byte unsigned integer datatype Peter Eisentraut <peter_e@gmx.net> 0 siblings, 1 reply; 2+ messages in thread From: Joe Conway @ 2001-01-14 15:16 UTC (permalink / raw) To: pgsql-sql Hello, I was looking for a datatype to represent a single byte unsigned integer. The closest thing I can find looking through the online manual is a one byte char. Are there any side-effects of using a char datatype for this purpose? Is there a better datatype to use? Thanks in advance, Joe ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: single byte unsigned integer datatype 2001-01-14 15:16 single byte unsigned integer datatype Joe Conway <jconway2@home.com> @ 2001-01-14 15:49 ` Peter Eisentraut <peter_e@gmx.net> 0 siblings, 0 replies; 2+ messages in thread From: Peter Eisentraut @ 2001-01-14 15:49 UTC (permalink / raw) To: Joe Conway <joe.conway@mail.com>; +Cc: pgsql-sql Joe Conway writes: > I was looking for a datatype to represent a single byte unsigned integer. > The closest thing I can find looking through the online manual is a one byte > char. Are there any side-effects of using a char datatype for this purpose? Yes, it won't store single byte unsigned integers, only single byte signed characters. > Is there a better datatype to use? smallint with a check constraint -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/ ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-01-14 15:49 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2001-01-14 15:16 single byte unsigned integer datatype Joe Conway <jconway2@home.com> 2001-01-14 15:49 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox