Re: char array overhead

Поиск
Список
Период
Сортировка
Искать
От
Steve Atkins
Тема
Re: char array overhead
Дата
Msg-id
748430B7-E4A2-4080-A1F3-8DCE0E969B21@blighty.com
Ответ на
char array overhead (Rob Sargent)
Список
Дерево обсуждения
char array overhead Rob Sargent <robjsargent@gmail.com>
Re: char array overhead Steve Atkins <steve@blighty.com>
Re: char array overhead Rob Sargent <robjsargent@gmail.com>
Re: char array overhead Alvaro Herrera <alvherre@2ndquadrant.com>

On Mar 31, 2014, at 8:08 AM, Rob Sargent  wrote:

> I'm angling toward using a very wide char(1) array.  Is the one-byte overhead for char(n<126) applied to each element or to the array?

Each element, it's a variable length type.

There's probably a better way of storing your data, but if you end up really needing a one-byte long character type, there is "char" (with the quotes).

Cheers,
  Steve


В списке pgsql-general по дате отправления
От: Tom Lane
Дата:
От: Paul Jungwirth
Дата:
FAQ