Re: Performance difference in accessing differrent columns in aPostgres Table - Mailing list pgsql-performance

From David Rowley
Subject Re: Performance difference in accessing differrent columns in aPostgres Table
Date
Msg-id CAKJS1f_CrjvGYExtmzYzzUnD9XzcbFpo6R_FON2hewSHpqM1xg@mail.gmail.com
Whole thread Raw
In response to Performance difference in accessing differrent columns in a Postgres Table  (Dinesh Kumar <dns98944@gmail.com>)
Responses Re: Performance difference in accessing differrent columns in a Postgres Table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On 29 July 2018 at 17:38, Dinesh Kumar <dns98944@gmail.com> wrote:
> I found performance variance between accessing int1 and int200 column which
> is quite large.

Have a look at slot_deform_tuple and heap_deform_tuple. You'll see
that tuples are deformed starting at the first attribute. If you ask
for attribute 200 then it must deform 1-199 first.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-performance by date:

Previous
From: Dinesh Kumar
Date:
Subject: Performance difference in accessing differrent columns in a Postgres Table
Next
From: Tom Lane
Date:
Subject: Re: Performance difference in accessing differrent columns in a Postgres Table