Re: Query plan excluding index on view
| От | Tom Lane |
|---|---|
| Тема | Re: Query plan excluding index on view |
| Дата | |
| Msg-id | 4767.1207288167@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Query plan excluding index on view ("Matt Klinker" <mklinker@gmail.com>) |
| Ответы |
Re: Query plan excluding index on view
|
| Список | pgsql-performance |
"Matt Klinker" <mklinker@gmail.com> writes:
> Sorry for not including this extra bit originally. Below is the explain
> detail from both the query to the view that takes longer and then the query
> directly to the single table that performs quickly.
...
> -> Subquery Scan *SELECT* 1 (cost=0.00..1285922.80 rows=18384890
> width=251)
> -> Seq Scan on company (cost=0.00..1102073.90 rows=18384890
The presence of a Subquery Scan node tells me that either this is a much
older PG version than you stated, or there are some interesting details
to the query that you omitted. Please drop the fan-dance routine and
show us a complete reproducible test case.
regards, tom lane
В списке pgsql-performance по дате отправления: