Re: varchar lengths

From: "Massa, Harald Armin" <chef(at)ghum(dot)de>
To: Marcus Engene <mengpg2(at)engene(dot)se>
Cc: POSTGRESQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: varchar lengths
Date: 2010-09-21 11:23:45
Message-ID: AANLkTinywm-tHYaCH8TWD8p7zU+6SSPR25PsR=KyQKYa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I recommend to use TEXT as type for that kind of columns.
99 out of 100 theories about "this value will never be longer then xx
characters" fail in the long run.

And "text", limited only by PostgreSQLs limits, performs as good or
better then varchar(length_limit) The time of "we only can allow n
chars for first name" for performance reasons have gone by, together
with walkmen and VHS.

Harald

--
GHUM GmbH
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607

Amtsgericht Stuttgart, HRB 734971
-
persuadere.
et programmare

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2010-09-21 11:29:27 Re: varchar lengths
Previous Message Richard Huxton 2010-09-21 10:05:22 Re: varchar lengths