| From: | Bill Moran <wmoran(at)potentialtech(dot)com> | 
|---|---|
| To: | Jeff <threshar(at)torgo(dot)978(dot)org> | 
| Cc: | pgsql-performance(at)postgresql(dot)org | 
| Subject: | Re: Fixed width rows faster? | 
| Date: | 2004-03-05 14:07:34 | 
| Message-ID: | 404889A6.7@potentialtech.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-performance | 
Jeff wrote:
> I'm guessing the answer to this is "no"
> 
> Is there any performance advantage to using a fixed width row (with PG)?
No.  The user docs state that the performance is equal for char, varchar
and text.
> I've heard this theory a few times and I think it is based on older, 
> different databases
MySQL used to have this issue (I don't know if it still does or not) to
the point that the docs once claimed that an index on a varchar was barely
as fast as a char with no index at all.
> and we have also some custom software here that uses 
> fixed width rows to be able to hit row N in O(1), but that isn't what 
> I'd call a real database.
Isn't needed in modern versions of Postgres, but I don't know (historically)
if it ever was or not.
-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dennis Bjorklund | 2004-03-05 14:31:44 | Re: Fixed width rows faster? | 
| Previous Message | Jeff | 2004-03-05 13:35:05 | Fixed width rows faster? |