Re: Disk space consumption: character varying(255) versus text used for index - Mailing list pgsql-novice

From Tom Lane
Subject Re: Disk space consumption: character varying(255) versus text used for index
Date
Msg-id 10867.1576868144@sss.pgh.pa.us
Whole thread Raw
In response to Disk space consumption: character varying(255) versus text used forindex  (Marcel Ruff <ruff@netwake.com>)
Responses Re: Disk space consumption: character varying(255) versus text usedfor index  (Justin <zzzzz.graf@gmail.com>)
List pgsql-novice
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 by date:

Previous
From: Marcel Ruff
Date:
Subject: Disk space consumption: character varying(255) versus text used forindex
Next
From: Justin
Date:
Subject: Re: Disk space consumption: character varying(255) versus text usedfor index