Skip site navigation (1) Skip section navigation (2)

Re: determining maxsize for character varying

From: okparanoid(at)free(dot)fr
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: determining maxsize for character varying
Date: 2007-06-16 11:35:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

if i understand well that means that if i choose character varying(3) or
character varying(8) or character varying(32) or character varying with no max
length the fields will take the same place in the disk (8kb) except for fields
too long to take place in the 8kb whose are stored in another place ?

Is that correct ?

So for small strings it's better to choose character(n) when it's possible ?

Best regards,


Selon Andreas Kretschmer <akretschmer(at)spamfence(dot)net>:

> okparanoid(at)free(dot)fr <okparanoid(at)free(dot)fr> schrieb:
> > Hello i would like to know if not determining a max size value for a
> character
> > varying's fields decrease the perfomance (perhaps size of stockage ? or
> > something else ?)
> No problem because of the TOAST-technology:
> Andreas
> --
> Really, I'm not out to destroy Microsoft. That will just be a completely
> unintentional side effect.                              (Linus Torvalds)
> "If I was god, I would recompile penguin with --enable-fly."    (unknow)
> Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at

In response to


pgsql-performance by date

Next:From: RagnarDate: 2007-06-16 12:30:20
Subject: Re: determining maxsize for character varying
Previous:From: Andreas KretschmerDate: 2007-06-16 10:55:25
Subject: Re: determining maxsize for character varying

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group