Re: why does this select hang postgres???

From: "Steve Wolfe" <steve(at)iboats(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: why does this select hang postgres???
Date: 2001-08-10 18:18:00
Message-ID: 009701c121c8$d1dbbfe0$50824e40@iboats.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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.

Without making comment on the legality of the SQL statement, simply
selecting everything from the tables is almost never a good idea, and most
tasks can almost always be done in a better manner. Usually when I see
people doing that, they are doing the equivalent of an SQL join in their
program - and usually vastly less efficiently than the database would be
able to do it. Other times, they're selecting everything, then throwing
away what they don't need, again, usually not as efficiently as the
database could do it, not to mention clobbering the system bus....

steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fran Fabrizio 2001-08-10 18:23:13 Re: why does this select hang postgres???
Previous Message Stephan Szabo 2001-08-10 18:16:06 Re: why does this select hang postgres???