Re: Datatypes and performance - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Datatypes and performance
Date
Msg-id 20030704152812.GB19733@dcc.uchile.cl
Whole thread Raw
In response to Datatypes and performance  ("Jay O'Connor" <joconnor@cybermesa.com>)
List pgsql-general
On Fri, Jul 04, 2003 at 09:10:41AM -0700, Jay O'Connor wrote:

> I created a database schema and based on the test data I had to work with,
> I couldn't really determine the max size of a lot of string fields so I
> just left a lot of fields as varchar
>
> A comment from a coworker was that this would cause a performance problem
>
> Based on the docs, they say that there's not performance difference between
> using varchar(n) and text.

The only difference comes from checking the length for the limited
fields, so varchar(n) will be very slightly slower than text.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"There was no reply" (Kernel Traffic)

pgsql-general by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: Datatypes and performance
Next
From: Weiping He
Date:
Subject: Re: any body using Solaris8 with postgresql 7.3.3