Re: why does this select hang postgres??? - Mailing list pgsql-general

From
Subject Re: why does this select hang postgres???
Date
Msg-id Pine.LNX.4.30.0108101104190.22311-100000@commandprompt.com
Whole thread Raw
In response to why does this select hang postgres???  (Jeremy Hansen <jeremy@xxedgexx.com>)
Responses Re: why does this select hang postgres???  (<pgsql-general@commandprompt.com>)
List 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.

Well, without a JOIN or a WHERE clause, this query is going to try create
the raw cartesian product of the two tables. If you have a lot of data in
your tables, this might take a while, because it will return every
possible combination of rows.



Regards,
Jw
--
jlx@commandprompt.com
by way of pgsql-general@commandprompt.com



pgsql-general by date:

Previous
From: Travis Bauer
Date:
Subject: Re: PL/Perl on Solaris
Next
From:
Date:
Subject: Boolean Constants Implicit?