Built-in Postgres Types as shown in Chap. 4 Programmer's Guide

Started by Wade D. Oberprillerover 25 years ago3 messagesgeneral
Jump to latest
#1Wade D. Oberpriller
oberpwd@anubis.network.com

Hello,

Can anyone point me into the right directions for building PostgreSQL with
the built-in types that are shown in Chap. 4 of the Programmer's Guide.

I would like to make use of the uint2/uint4 and float4/float8 datatypes, but
they don't appear to be automatically built in.

Wade Oberpriller
StorageTek
oberpwd@network.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Wade D. Oberpriller (#1)
Re: Built-in Postgres Types as shown in Chap. 4 Programmer's Guide

oberpwd@anubis.network.com (Wade D. Oberpriller) writes:

Can anyone point me into the right directions for building PostgreSQL with
the built-in types that are shown in Chap. 4 of the Programmer's Guide.

I would like to make use of the uint2/uint4 and float4/float8 datatypes, but
they don't appear to be automatically built in.

float4/float8 certainly are built in. I dunno where this table came from,
though, because uint2/uint4 never have existed as SQL-level types AFAIK.
There seem to be some other flights of fancy (or just obsolete info)
in this table as well.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Wade D. Oberpriller (#1)
Re: Built-in Postgres Types as shown in Chap. 4 Programmer's Guide

Wade D. Oberpriller writes:

Can anyone point me into the right directions for building PostgreSQL with
the built-in types that are shown in Chap. 4 of the Programmer's Guide.

I would like to make use of the uint2/uint4 and float4/float8 datatypes, but
they don't appear to be automatically built in.

float4 and float8 are certainly built in, but uint2 and uint4 aren't and
won't be. The table in the programmer's guide seems to be confusing.

(If you want unsigned integers, use a check condition on the column
instead.)

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/