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 06:46:35
Message-ID: 34E68F4B.75CB6238@bawue.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:
>
> > > 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

For the perl interface (DBD-Pg) I can not use cursors at all,
because they can not be nested.

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Edmund Mergl 1998-02-15 08:34:05 wishlist: PQfsize
Previous Message The Hermit Hacker 1998-02-15 06:11:04 Re: [HACKERS] spin locks