byte - Mailing list pgsql-sql

From Remigiusz Sokolowski
Subject byte
Date
Msg-id Pine.GS4.4.02A.9901141445300.23102-100000@netra.gdansk.sprint.pl
Whole thread Raw
In response to Re: [SQL] rule plan string too big.  (jwieck@debis.com (Jan Wieck))
List pgsql-sql
Hi!
I'm wonder if there is available such a type like byte
I mean integers, which are < 256
I don't find such a type in docs, so I think, I should rather create it by
myself.
Unfortunately I'm new with this stuff, so I need help -
I found construction of needed sql statement, but explanations in docs are
for me too short ;-)
so -
    create type byte(
            INTERNALLENGTH=1,
            INPUT = my_proc_1,
            OUTPUT= my_proc_2
            );
I understand that INTERNALLENGTH is given in bytes, isn't it?
And second question - are there some functions, which I can use as
my_proc_* or must I write them by myself?
If so - how such functions look like?
    TIA
    Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski      e-mail: rems@gdansk.sprint.pl           * *
-----------------------------------------------------------------*****----------


pgsql-sql by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [SQL] rule plan string too big.
Next
From: Bruce Momjian
Date:
Subject: Re: [SQL] Indexes on OIDs ?