Retrieve columntypes and checks?

Поиск
Список
Период
Сортировка
От Jesper Krogh
Тема Retrieve columntypes and checks?
Дата
Msg-id clqhii$pf6$1@sea.gmane.org
обсуждение исходный текст
Ответы Re: Retrieve columntypes and checks?  (Oliver Fromme <olli@lurza.secnetix.de>)
Re: Retrieve columntypes and checks?  (Bruno Wolff III <bruno@wolff.to>)
Re: Retrieve columntypes and checks?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
Trying to convert an application from MySQL to PostgreSQL I ran into
some troubles..

In MySQL is it quite easy to find out which type a column is.. in
particular if a column is an "enum" so the webapplication can do
appropiate checks in javascript in advance for an insert.

In PostgreSQL the enum's are converted to varchar with checks, so I need
to get a hold on the column-type and if it's a varchar parse the check
string for values..

How do I do that?

Any better suggestions?

Thanks.

--
./Jesper Krogh, jesper@krogh.cc


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

Предыдущее
От: Oliver Fromme
Дата:
Сообщение: Re: serial = autoincrement = without gaps ??
Следующее
От: Oliver Fromme
Дата:
Сообщение: Re: Retrieve columntypes and checks?