Re: [HACKERS] wishlist: PQfsize

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] wishlist: PQfsize
Дата
Msg-id 199802152326.SAA29217@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] wishlist: PQfsize  (Edmund Mergl <E.Mergl@bawue.de>)
Список 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 по дате отправления:

Предыдущее
От: Keith Parks
Дата:
Сообщение: Re: [HACKERS] how about a "bugs" regression test?
Следующее
От: Ryan Kirkpatrick
Дата:
Сообщение: Re: [HACKERS] Valid ports for v6.3