Re: libpq - description of columns

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: libpq - description of columns
Дата
Msg-id 1022169833.22629.12.camel@rebel
обсуждение исходный текст
Ответ на Re: libpq - description of columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces
On Thu, 2002-05-23 at 09:26, Tom Lane wrote:
> Christian Gregoire <cgregoir99@yahoo.com> writes:
> > Using '\d TABLENAME', psql gives me
> >   character(15)
> > for a column, when libpq API PQfsize returns -1 for
> > the same column, whereas -1 should only indicate
> > fields with variable size (like TEXT i guess). Any
> > idea ?
> 
> Yes, char(N) is considered a variable-length type.  (Think about
> multibyte encodings to see why this must be so.)  psql is looking

So it is only to the "user" that pg says "char() is fixed-length"?

-- 
+---------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net     |
| Jefferson, LA  USA      http://ronandheather.dhs.org:81 |
|                                                         |
| "I have created a government of whirled peas..."        |
|   Maharishi Mahesh Yogi, 12-May-2002,                   |
!   CNN, Larry King Live                                  |
+---------------------------------------------------------+



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq - description of columns
Следующее
От: Denis Cartier Millon
Дата:
Сообщение: if exists / where exisyts....