Re: Speed of varchar vs. char in indices

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Speed of varchar vs. char in indices
Date: 2001-01-24 18:24:14
Message-ID: 20010124102414.A26076@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Mirko Zeibig <mirko(at)picard(dot)inka(dot)de> [010124 09:07] wrote:
> Hello,
>
> I have a table:
>
> CREATE TABLE pge (
> pge_id SERIAL,
> pge_path CHAR(255) CONSTRAINT ak_pge_path UNIQUE,
> PRIMARY KEY (pge_id)
> );
>
> >From other tables I now reference pge_id as well as pge_path. Somewhere I
> have read that indices on CHAR are faster than those on VARCHAR.

No clue, but as a somewhat related note, I don't think indexes work
properly when a join is attempted on a CHAR and VARCHAR column.

--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Brett W. McCoy 2001-01-24 18:27:15 Re: Postgres Client other than Linux?
Previous Message Alfred Perlstein 2001-01-24 18:23:14 Re: VACUUM ANALYZE FAILS on 7.0.3