Re: [HACKERS] wishlist: PQfsize - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] wishlist: PQfsize
Date
Msg-id 199802152326.SAA29217@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] wishlist: PQfsize  (Edmund Mergl <E.Mergl@bawue.de>)
List pgsql-hackers
> > 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@candle.pha.pa.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@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: Keith Parks
Date:
Subject: Re: [HACKERS] how about a "bugs" regression test?
Next
From: Ryan Kirkpatrick
Date:
Subject: Re: [HACKERS] Valid ports for v6.3