Re: Function for determining column witdhs in libpq ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function for determining column witdhs in libpq ?
Дата
Msg-id 27547.1109950210@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function for determining column witdhs in libpq ?  (David.Jacques@CCRS.NRCan.gc.ca)
Список pgsql-interfaces
David.Jacques@CCRS.NRCan.gc.ca writes:
> I need to build a create table statement based on the some of the field 
>  names I retreive from an existing table. I have made use of the
> functionality
>  in Pqftype() but that doesn't help me distiguish between a column of
>  VARCHAR(20) and a a column of VARCHAR(8). Is there a function in lipq to do
> this ?

PQfmod returns the typmod of the column, which encodes this information.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: how to parse an proargtypes array?
Следующее
От: b t
Дата:
Сообщение: Fwd: Re: how to parse an proargtypes array?