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

From David.Jacques@CCRS.NRCan.gc.ca
Subject Function for determining column witdhs in libpq ?
Date
Msg-id B7F9814D6850C949947CF8DEA13477810207ABE7@s5-ccr-r2.ccrs.nrcan.gc.ca
Whole thread Raw
Responses Re: Function for determining column witdhs in libpq ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
I need to build a create table statement based on the some of the field names I retreive from an existing table. I have
madeuse of the
 
functionalityin Pqftype() but that doesn't help me distiguish between a column ofVARCHAR(20) and a a column of
VARCHAR(8).Is there a function in lipq to do
 
this ?


Thanks

David



pgsql-interfaces by date:

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