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 23:26:26
Message-ID: 199802152326.SAA29217@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim B. Mikheev 1998-02-16 01:51:17 Re: [HACKERS] Re: [PORTS] v6.3 release ToDo list and supported ports
Previous Message Keith Parks 1998-02-15 21:50:06 Re: [HACKERS] how about a "bugs" regression test?