Re: [HACKERS] wishlist: PQfsize

From: Edmund Mergl <E(dot)Mergl(at)bawue(dot)de>
To: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] wishlist: PQfsize
Date: 1998-02-15 19:56:17
Message-ID: 34E74861.33605D29@bawue.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
>
> >
> > Hi all,
> >
> > I would like to add the following item to the
> > wishlist:
> >
> > currently the libpq-function PQfsize returns the
> > size in bytes of the field with the given field-
> > index. If the field is a variable-length field,
> > PQfsize returns -1.
> >
> > In general as well as for some internal functionality
> > of the perl interface it would be useful, if PQfsize
> > would return the number of bytes even for variable-
> > length fields.
>
> 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.

Edmund
--
Edmund Mergl mailto:E(dot)Mergl(at)bawue(dot)de
Im Haldenhau 9 http://www.bawue.de/~mergl
70565 Stuttgart fon: +49 711 747503
Germany gsm: +49 171 2645325

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Keith Parks 1998-02-15 21:50:06 Re: [HACKERS] how about a "bugs" regression test?
Previous Message Ryan Kirkpatrick 1998-02-15 18:11:40 Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha