Re: Disk space consumption: character varying(255) versus text usedfor index

Поиск
Список
Период
Сортировка
От Justin
Тема Re: Disk space consumption: character varying(255) versus text usedfor index
Дата
Msg-id CALL-XeOFZ0sFuYFk-KLBhBu8DmArFkkKvPRXFwE5GisN04GBMA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Disk space consumption: character varying(255) versus text used for index  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы RE: Disk space consumption: character varying(255) versus text usedfor index  (Stephen Froehlich <s.froehlich@cablelabs.com>)
Список pgsql-novice
Have question this states the GUID  is the text Hex value form a UUID  if so that 36bytes long  vs integer that is 128bits   if that is the case convert this GUID to  UUID type 

or am i missing something?

On Fri, Dec 20, 2019 at 1:55 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Marcel Ruff <ruff@netwake.com> writes:
> my btree index for
>    guid                | character varying(255)
> is currently 6.9GB (almost all guid entries are of size 37bytes)
> If I would change the data type to
>   guid                | text
> would the index size be reduced (without hitting performance)?

Wouldn't make any difference at all.

                        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Disk space consumption: character varying(255) versus text used for index
Следующее
От: Stephen Froehlich
Дата:
Сообщение: RE: Disk space consumption: character varying(255) versus text usedfor index