From: | Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org> |
---|---|
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:31:44 |
Message-ID: | Pine.LNX.4.44.0403051525560.13979-100000@zigo.dhs.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, 5 Mar 2004, Jeff wrote:
> Is there any performance advantage to using a fixed width row (with PG)?
As far as I know there is only a small win when you want to extract some
field from a tuple and with variable width fields you have to walk to the
correct field. But this is a small performance problem unless you have
very many variable size columns in the table.
> different databases and we have also some custom software here that
> uses fixed width rows to be able to hit row N in O(1)
This can not happen in pg since there is no row N. Every transaction can
have a different view of the table, some rows are visible and some others
are not. To find row N you have to walk from the start and inspect every
tuple to see if it's visible to this transaction or not.
--
/Dennis Björklund
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2004-03-05 23:28:55 | Re: Fixed width rows faster? |
Previous Message | Bill Moran | 2004-03-05 14:07:34 | Re: Fixed width rows faster? |