Re: Function for determining column witdhs in libpq ? - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Function for determining column witdhs in libpq ?
Date
Msg-id 27547.1109950210@sss.pgh.pa.us
Whole thread Raw
In response to Function for determining column witdhs in libpq ?  (David.Jacques@CCRS.NRCan.gc.ca)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: how to parse an proargtypes array?
Next
From: b t
Date:
Subject: Fwd: Re: how to parse an proargtypes array?