X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id AD073D1B4EB for ; Mon, 8 Sep 2003 15:14:15 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 67167-02 for ; Mon, 8 Sep 2003 12:14:05 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 72F51D1B516 for ; Mon, 8 Sep 2003 12:14:03 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h88FE0An013997; Mon, 8 Sep 2003 11:14:00 -0400 (EDT) To: "Donald Fraser" Cc: "[ADMIN]" Subject: Re: Are 50 million rows a problem for postgres ? In-reply-to: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> References: <200309081032.51586.vendi@cosmoline.com> <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> Comments: In-reply-to "Donald Fraser" message dated "Mon, 08 Sep 2003 11:03:12 +0100" Date: Mon, 08 Sep 2003 11:14:00 -0400 Message-ID: <13996.1063034040@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/141 X-Sequence-Number: 10229 "Donald Fraser" writes: > My analysis at the time was that to access random records, performance > deteriorated the further away the records that you were accessing were > from the beginning of the index. For example using a query that had > say OFFSET 250000 would cause large delays. Well, yeah. OFFSET implies generating and discarding that number of records. AFAICS there isn't any shortcut for this, even in a query that's just an indexscan, since the index alone can't tell us whether any given record would actually be returned. regards, tom lane