| От | Steve Wolfe |
|---|---|
| Тема | Re: why does this select hang postgres??? |
| Дата | |
| Msg-id | 009701c121c8$d1dbbfe0$50824e40@iboats.com обсуждение |
| Ответ на | 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. 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
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера