Re: Questions about horizontal partitioning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John Sales <spelunker334(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Questions about horizontal partitioning
Date: 2007-01-09 02:39:05
Message-ID: 18573.1168310345@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Sales <spelunker334(at)yahoo(dot)com> writes:
> By doing this, I'm hoping that the query optimizer is smart enough to see that if a query comes in and requests only the six columns (that are in the narrower table) that PostgreSQL won't have to load the wider table into the buffer pool, and thereby actually have to only access about 10% the amount of disk that it presently does.

> Is this a sound theory?

No. It still has to touch the second table to confirm the existence of
rows to join to.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-01-09 02:42:40 Re: Autovacuum Improvements
Previous Message Matthew Terenzio 2007-01-09 02:33:06 Re: COPY FROM and sequences