Re: [HACKERS] wishlist: PQfsize

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

>
> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-02-15 17:55:47 Re: [HACKERS] Re: [PORTS] v6.3 release ToDo list and supported ports
Previous Message Bruce Momjian 1998-02-15 17:47:57 Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha