Re: Data types mapping

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Doug Silver <dsilver(at)urchin(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Data types mapping
Date: 2003-04-10 18:20:12
Message-ID: 5617.1049998812@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Doug Silver <dsilver(at)urchin(dot)com> writes:
> I have a partial mapping of some of the fields with their internal type, e.g.:
> integer 4
> smallint 5

Some of these are wrong ... from memory, int4 is 23.

> What internal table has the complete mapping?

SELECT oid, typname FROM pg_type

This will give you a lot of things you did not realize were types, too.
You might prefer to ignore rows with typtype != 'b'.

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Delao, Darryl W 2003-04-10 18:33:09 Remote logging in postgres
Previous Message Tim Ellis 2003-04-10 18:13:05 Re: PLEASE HELP ME URGENT about choosing only the ones