Re: Bit string storage space?

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Re: Bit string storage space?
Дата
Msg-id 3E55CDEC.D1C44066@cvc.net
обсуждение исходный текст
Ответ на Bit string storage space?  (Stephen Robert Norris <srn@commsecure.com.au>)
Список pgsql-general
1 byte equals 8 bits in the bit string. Add 4 bytes minimum for the
'size_of' value for the field.

Example:

B'11011011010101101' 17 bits

(17 % 8) + 1 (round up) + 4 ( for size ) = 7 bytes to store 17 bits.
--

Carpe Dancem ;-)
-----------------------------------------------------------------
Remember your friends while they are alive
-----------------------------------------------------------------
                         Sincerely, Dennis Gearon

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Authentication to run pg_dump automatically
Следующее
От: Neil Conway
Дата:
Сообщение: Re: continuous data from stdin