Re: Optimizing a condition based on an a very unequally

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Optimizing a condition based on an a very unequally
Дата
Msg-id 20020313131759.B86474-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Optimizing a condition based on an a very unequally distributed value.  ("Nick Fankhauser" <nickf@ontko.com>)
Список pgsql-admin
On Wed, 13 Mar 2002, Nick Fankhauser wrote:

> Thanks for the answer! ...but now I have more questions:
>
> Is it true that if I use this condition in a join that further constrains
> the results, this might use the index?
If there were other conditions, it may do so.

> Does PGSQL know that few or many rows will be returned because of data
> gathered from the last vacuum?

I'd guess the last analyze (or vacuum analyze).

> What do you mean by "tuple validity?" can't this query be resolved entirely
> based on the index?

Not currently, because the index doesn't know if the row can be seen by
your transaction. There may be rows that are valid for some transactions
but not yours that also have index entries.



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

Предыдущее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: Optimizing a condition based on an a very unequally distributed value.
Следующее
От: "James Kelty"
Дата:
Сообщение: Order by clause in 'select distinct'?