Re: Reducing data type space usage

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Reducing data type space usage
Дата
Msg-id 87wt82vltq.fsf@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Reducing data type space usage  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:

> On Sat, Sep 16, 2006 at 08:56:11PM +0100, Gregory Stark wrote:
>
> [Re inet and cidr]
>
>> Why are these varlena? Just for ipv6 addresses? Is the network mask length not
>> stored if it's not present? This gives us a strange corner case in that ipv4
>> addresses will *always* fit in the smallfoo data type and ipv6 *never* fit.
>> Ie, we'll essentially end up with an ipv4inet and an ipv6inet. Sad in a way.
>
> Eh? Either will always fit. ipv6 is 128 *bits* and the new varlena
> header goes to 128 *bytes*. That should fit easily, no?

Er, oops.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Reducing data type space usage
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: -HEAD planner issue wrt hash_joins on dbt3 ?