Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XZsmV-0007Tu-Ak for pgsql-performance@arkaria.postgresql.org; Fri, 03 Oct 2014 02:39:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XZsmU-0006Xq-Q5 for pgsql-performance@arkaria.postgresql.org; Fri, 03 Oct 2014 02:39:42 +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 1XZsmT-0006Ux-05 for pgsql-performance@postgresql.org; Fri, 03 Oct 2014 02:39:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XZsmQ-0000ab-1f for pgsql-performance@postgresql.org; Fri, 03 Oct 2014 02:39:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s932dbpu010065; Thu, 2 Oct 2014 22:39:37 -0400 From: Tom Lane To: Marc Slemko cc: pgsql-performance@postgresql.org Subject: Re: performance of SELECT * much faster than SELECT with large offset In-reply-to: References: Comments: In-reply-to Marc Slemko message dated "Thu, 02 Oct 2014 19:17:48 -0700" Date: Thu, 02 Oct 2014 22:39:37 -0400 Message-ID: <10064.1412303977@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) 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 Marc Slemko writes: > I ran into this oddity lately that goes against everything I thought I > understood and was wondering if anyone had any insight. SELECT * avoids a projection step ... see ExecAssignScanProjectionInfo. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance