Re: [HACKERS] char(8) vs char8

Поиск
Список
Период
Сортировка
От Thomas G. Lockhart
Тема Re: [HACKERS] char(8) vs char8
Дата
Msg-id 355B0D56.273FEEA8@alumni.caltech.edu
обсуждение исходный текст
Ответ на char(8) vs char8  (darcy@druid.net (D'Arcy J.M. Cain))
Ответы Re: [HACKERS] char(8) vs char8  (darcy@druid.net (D'Arcy J.M. Cain))
Список pgsql-hackers
> This was an unexpected difference between these two types and I wonder
> if it was meant to be this way.  Previously, a char8 field with the
> string 'abc' would return 'abc' as expected.  Now, with char(8), I get
> back 'abc     ' instead.  You can see this with my PygreSQL module
> or the C interface (which my module uses, of course.)  This causes a
> lot of my programs to break.
>
> I have made a quick change to my Python module to handle this.  Should
> I clean it up or can I expect the behaviour to go back the way it was?

The behavior you want is varchar() rather than char().

                    - Tom

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

Предыдущее
От: Byron Nikolaidis
Дата:
Сообщение: Re: [HACKERS] char(8) vs char8
Следующее
От: "Göran Thyni"
Дата:
Сообщение: Re: AW: [HACKERS] mmap and MAP_ANON