From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Jeff Madison <jeff@ikano.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Large Join Dies
Date: Wed, 17 Apr 2002 17:35:28 -0700
Message-ID: <3CBE14D0.4030205@wellsgaming.com> (raw)
References: <02da01c1e66e$45aa3c20$58c2d0cd@JEFF>
Jeff Madison wrote:
> Running Postgres 7.1.4 from RedHad RPM on RedHat 7.2. When ever we run
> a query where we are joining more than 3 tables the query never returns.
> Any ideas?
>
> Jeff
Jeff,
It would help to know things like:
* What the exact query is (and an EXPLAIN of the query)
* How big the tables are (and the general schema)
* What kind of hardware you're running on
Off the top of my head, I would say check your table1.key = table2.key
join constraints. More than three tables leads to a lot of constraints
and if you miss just one, you'll get a big cartesian product that will
make the query seemingly go on forever even if your tables are of moderate
size.
--Jeremy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jeremy@wellsgaming.com, jeff@ikano.com
Subject: Re: Large Join Dies
In-Reply-To: <3CBE14D0.4030205@wellsgaming.com>
References: <02da01c1e66e$45aa3c20$58c2d0cd@JEFF> <3CBE14D0.4030205@wellsgaming.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox