Re: int1?

From: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
To: PgSQL General ML <pgsql-general(at)postgresql(dot)org>
Subject: Re: int1?
Date: 2003-10-09 14:39:17
Message-ID: 1065710357.1233.9.camel@haggis
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 2003-10-09 at 03:19, Sean Chittenden wrote:
> > Is there any date type that can be used for 0-255
> > values? Like an "int1" or byte column.
>
> A SMALLINT is two bytes on disk, use "char" instead. This is a hidden
> goodie in PostgreSQL and one that I wish was exposed via a more
> conventional syntax (*hint hint*).
>
> http://developer.postgresql.org/docs/postgres/datatype-character.html#DATATYPE-CHARACTER-SPECIAL-TABLE

Wouldn't that be, though, a signed byte? The OP wants unsigned.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ron(dot)l(dot)johnson(at)cox(dot)net
Jefferson, LA USA

The purpose of the military isn't to pay your college tuition or
give you a little extra income; it's to "kill people and break
things".
Surprisingly, not everyone understands that.

In response to

  • Re: int1? at 2003-10-09 08:19:09 from Sean Chittenden

Browse pgsql-general by date

  From Date Subject
Next Message Jonathan Bartlett 2003-10-09 14:42:04 Re: Humor me: Postgresql vs. MySql (esp. licensing)
Previous Message Kaarel 2003-10-09 14:39:10 Re: Humor me: Postgresql vs. MySql (esp. licensing)