Re: why does this select hang postgres???

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Jeremy Hansen <jeremy(at)xxedgexx(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: why does this select hang postgres???
Date: 2001-08-10 18:16:06
Message-ID: Pine.BSF.4.21.0108101113050.50759-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 10 Aug 2001, Jeremy Hansen wrote:

>
> select * from env_info,summary,plat_info;
>
> Is my statement broken? Is this not legal? Postgres just sits there....
>
> My goal is to select everything from multiple tables with one sql
> statement.

I don't think it's doing what you want. You've asked for the
join of all three tables, ie, each row in env_info crossed
with each row of summary crossed with each row of plat_info
(so if say each table had 10^4 rows, you'd get like 10^12
rows out).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Wolfe 2001-08-10 18:18:00 Re: why does this select hang postgres???
Previous Message Mike Mascari 2001-08-10 18:15:49 Re: why does this select hang postgres???