Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-03 Thread Tom Lane
Jack Orenstein <[EMAIL PROTECTED]> writes: > What would be really nice is something like "cluster recent". The idea is to > cluster only rows added since the last cluster. And you would put them where? regards, tom lane ---(end of broadcast)---

Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-03 Thread Jack Orenstein
Greg Stark wrote: Can you recommend an application-level workaround that will access pages in the right order? Well you could try CLUSTER-ing your table on that index. For my application, the problem with CLUSTER is that it reclusters the entire table. So as the table grows, the cost of CLUSTER go

Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-03 Thread Greg Stark
Jack Orenstein <[EMAIL PROTECTED]> writes: > Alvaro Herrera wrote: > > > On Wed, Jun 02, 2004 at 08:38:58PM -0400, Jack Orenstein wrote: > > > > >What is the pattern of access to data pages? I can think of two likely > > >answers: > > > > > >1) The index is scanned for ages 30 through 40. As each

Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-02 Thread Alvaro Herrera
On Wed, Jun 02, 2004 at 11:22:53PM -0400, Jack Orenstein wrote: > Alvaro Herrera wrote: > >On Wed, Jun 02, 2004 at 08:38:58PM -0400, Jack Orenstein wrote: > > > > > >>What is the pattern of access to data pages? I can think of two likely > >>answers: > >> > >>1) The index is scanned for ages 30 thr

Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-02 Thread Jack Orenstein
Alvaro Herrera wrote: On Wed, Jun 02, 2004 at 08:38:58PM -0400, Jack Orenstein wrote: What is the pattern of access to data pages? I can think of two likely answers: 1) The index is scanned for ages 30 through 40. As each index entry is scanned, a row is retrieved. This one. There have been nois

Re: [GENERAL] Page access pattern in query plan using index scan

2004-06-02 Thread Alvaro Herrera
On Wed, Jun 02, 2004 at 08:38:58PM -0400, Jack Orenstein wrote: > What is the pattern of access to data pages? I can think of two likely > answers: > > 1) The index is scanned for ages 30 through 40. As each index entry is > scanned, a row is retrieved. This one. There have been noises about do

[GENERAL] Page access pattern in query plan using index scan

2004-06-02 Thread Jack Orenstein
Suppose I have a table as follows: testdb=> \d person Table "public.person" Column | Type | Modifiers +-+--- id | integer | not null age| integer