Re: Data types mapping

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Data types mapping
Дата
Msg-id 5617.1049998812@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Data types mapping  (Doug Silver <dsilver@urchin.com>)
Ответы OT - (was Re: Data types mapping)  (Doug Silver <dsilver@urchin.com>)
Список pgsql-novice
Doug Silver <dsilver@urchin.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


В списке pgsql-novice по дате отправления:

Предыдущее
От: Doug Silver
Дата:
Сообщение: Data types mapping
Следующее
От: "Delao, Darryl W"
Дата:
Сообщение: Remote logging in postgres