> > We have a new atttypmod field that holds the length for the column as
> > defined at table-creation time for char() and varchar(). Is that the
> > number you want?
> >
> > --
> > Bruce Momjian
> > maillist(at)candle(dot)pha(dot)pa(dot)us
>
>
> for varchar() and also for the datatype text it would be
> nice to know the actual length. If this is not possible,
> then the length at creation time is still better than -1.
If you use binary cursors, you can use VARSIZE and VARDATA to see the
size and data for a string type.
--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us