Re: why does this select hang postgres???

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: why does this select hang postgres???
Дата
Msg-id 200108101829.f7AITeI24740@candle.pha.pa.us
обсуждение исходный текст
Ответ на why does this select hang postgres???  (Jeremy Hansen <jeremy@xxedgexx.com>)
Ответы Re: why does this select hang postgres???  (Jeremy Hansen <jeremy@xxedgexx.com>)
Список 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.

You didn't join the tables.  This will join each row to every other row.
This will take a long time.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-general по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: why does this select hang postgres???
Следующее
От: Mike Mascari
Дата:
Сообщение: Re: why does this select hang postgres???