Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUwj3-0007zn-5h for pgsql-performance@arkaria.postgresql.org; Fri, 19 Sep 2014 11:51:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUwj2-0005b4-ID for pgsql-performance@arkaria.postgresql.org; Fri, 19 Sep 2014 11:51:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUwj0-0005ar-Dk for pgsql-performance@postgresql.org; Fri, 19 Sep 2014 11:51:42 +0000 Received: from mout.gmx.net ([212.227.17.22]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUwis-0005BH-Et for pgsql-performance@postgresql.org; Fri, 19 Sep 2014 11:51:40 +0000 Received: from [192.168.1.27] ([84.58.13.99]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MJSuF-1XTZ9D0tg3-0039pd for ; Fri, 19 Sep 2014 13:51:32 +0200 Message-ID: <541C18C5.3080204@gmx.de> Date: Fri, 19 Sep 2014 13:51:33 +0200 From: =?ISO-8859-15?Q?Bj=F6rn_Wittich?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: query a table with lots of coulmns Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:vq6fYF2d6m+ebttMa8FjZchOXIpuZTv8ILU92fywK21HnIWco1S k3mUv9Ht9XDB2xwseOu/9eE8bSckAW9hNo8KRvWmRPECkIR2uDW1IRdHK4BhPQg2g+yCQvi CfNrFfxSaMNbNiMQ7r0aMHyoffcBWufoZvha9twLPpEIBFCrlYRnaMyqh3ppg9qgm1E1eNT sC5n4lrrB1MvayAw1dP0A== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi mailing list, I am relatively new to postgres. I have a table with 500 coulmns and about 40 mio rows. I call this cache table where one column is a unique key (indexed) and the 499 columns (type integer) are some values belonging to this key. Now I have a second (temporary) table (only 2 columns one is the key of my cache table) and I want do an inner join between my temporary table and the large cache table and export all matching rows. I found out, that the performance increases when I limit the join to lots of small parts. But it seems that the databases needs a lot of disk io to gather all 499 data columns. Is there a possibilty to tell the databases that all these colums are always treated as tuples and I always want to get the whole row? Perhaps the disk oraganization could then be optimized? Thank you for feedback and ideas Best Neo -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance