Re: postgresql shared buffers

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: Praveen Kumar N <praveen_n(at)students(dot)iiit(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgresql shared buffers
Date: 2006-09-08 14:05:31
Message-ID: 20060908140531.GS5892@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas wrote:
> Praveen Kumar N wrote:
> >Let me explain once more.
> >
> >I have two relations which are 10 times more than bufferpool size.I
> >have observed the following things when joined that two relations(it
> >using merge join to join both relations)
> >
> >1.It first accessed system catalog tables
> >2.Relation 1
> >3.Relation 2
> >
> >my doubt is one whole relation cant fit in the main memory.That too
> >when we use merge join, it should keep some part of 1st relations and
> >should scan second relation as bufferpool size is less compared to
> >size of each relation.similarly for the remainin part of 1st
> >relation.But it is not happening here.First whole Relation1 is scanned
> >and then Relation 2 is scanned. Then how is it joining two relations
> >using merge join? Am I missing something?
>
> Hmm. A hash join, maybe? You should do EXPLAIN on the query to see what
> it really does, otherwise we're just guessing.

Another option would be that the tuples are written to a sort tape, I
think.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2006-09-08 14:22:19 Re: postgresql shared buffers
Previous Message Praveen Kumar N 2006-09-08 14:03:37 Re: postgresql shared buffers