pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedLarge Join Dies
2+ messages / 2 participants
[nested] [flat]
* Large Join Dies
@ 2002-04-18 00:16 Jeff Madison <jeff@ikano.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Madison @ 2002-04-18 00:16 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Large Join Dies
@ 2002-04-18 00:35 Jeremy Buchmann <jeremy@wellsgaming.com>
parent: Jeff Madison <jeff@ikano.com>
0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Buchmann @ 2002-04-18 00:35 UTC (permalink / raw)
To: Jeff Madison <jeff@ikano.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-04-18 00:35 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18 00:16 Large Join Dies Jeff Madison <jeff@ikano.com>
2002-04-18 00:35 ` Jeremy Buchmann <jeremy@wellsgaming.com>
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