Re: [GENERAL] Space stripping ...

Поиск
Список
Период
Сортировка
От Maarten Boekhold
Тема Re: [GENERAL] Space stripping ...
Дата
Msg-id Pine.SUN.3.91.980724100044.4169H-100000@dutepp0.et.tudelft.nl
обсуждение исходный текст
Ответ на Space stripping ...  (dlibenzi@maticad.it (Davide Libenzi))
Список pgsql-general
On Fri, 24 Jul 1998, Davide Libenzi wrote:

> Is there a way to avoid the trailing blanks from char fields ?

TRIM() I think.

> Why PostgreSQL store the full field on storage even if it's almost empty ?

Cos that's how the char() type is supposed to work. You could ofcourse
use varchar(), which will only take the space it needs, in change for
some performance.

Maarten

_____________________________________________________________________________
| TU Delft, The Netherlands, Faculty of Information Technology and Systems  |
|                   Department of Electrical Engineering                    |
|           Computer Architecture and Digital Technique section             |
|                          M.Boekhold@et.tudelft.nl                         |
-----------------------------------------------------------------------------


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

Предыдущее
От: Maarten Boekhold
Дата:
Сообщение: Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]
Следующее
От: Marc Fournier
Дата:
Сообщение: Re: [GENERAL] Re: [HACKERS] [Fwd: SGVLLUG Oracle and Informix on Linux]