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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ruff(at)netwake(dot)com
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Disk space consumption: character varying(255) versus text used for index
Date: 2019-12-20 18:55:44
Message-ID: 10867.1576868144@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Marcel Ruff <ruff(at)netwake(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Justin 2019-12-20 19:06:17 Re: Disk space consumption: character varying(255) versus text used for index
Previous Message Marcel Ruff 2019-12-20 18:18:45 Disk space consumption: character varying(255) versus text used for index