Re: Speed & Memory Management

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Kris <kkiger(at)depauw(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Speed & Memory Management
Date: 2003-04-01 21:42:11
Message-ID: Pine.LNX.4.44.0304012112490.2216-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Kris writes:

> My thought is that because I will likely have many
> updates/inserts/deletes occurring I should set each column that requires
> text to a static ammount (ie using char(30) instead of text).

That would buy you absolutely nothing. char() is not faster than text.
Instead you would make everything slower because the system would
constantly have to pad and trim your values and it would bloat the storage
with the extra spaces.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Chris White 2003-04-02 00:02:49 Re: Documentation for the \lo_export and \lo_import commands
Previous Message Chris White 2003-04-01 20:15:37 Documentation for the \lo_export and \lo_import commands