Re: Migration: Informix to PostgreSQL Case Study

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>
Cc: Jutta Horstmann <jh(at)weltraumsofa(dot)de>, PostgreSQL Advocacy <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: Migration: Informix to PostgreSQL Case Study
Date: 2005-08-12 13:33:27
Message-ID: 20050812133327.GA12367@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy

On Fri, Aug 12, 2005 at 08:22:39AM -0400, Merlin Moncure wrote:

> One small correction: the PostgreSQL char(n) type takes n bytes, where n
> is the maximum size of the string. Varchar takes m + 4 for each row,
> where m is the actual string length (space delimited).

Not quite true -- char(n) also takes n+4, but only in single byte
encodings. It can take more -- AFAIU it can be up to n*4 + 4 (worst
case) in UTF8.

--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"Et put se mouve" (Galileo Galilei)

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Andy Astor 2005-08-12 15:42:07 An Open Letter from EnterpriseDB
Previous Message Merlin Moncure 2005-08-12 12:22:39 Re: Migration: Informix to PostgreSQL Case Study