Re: getting rid of SnapshotNow

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: getting rid of SnapshotNow
Дата
Msg-id CA+TgmoZEw3U2sNY7Ry5mO6wMxLmqaxyjxdiYhMSAA2W-UkTH8g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: getting rid of SnapshotNow  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: getting rid of SnapshotNow  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Jul 23, 2013 at 2:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Tue, Jul 23, 2013 at 12:28 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> As far as get_actual_variable_range() is concerned, an MVCC snapshot
>>> would probably be the thing to use anyway;
>
>> That surprises me, though.  I really thought the point was to cost the
>> index scan, and surely that will be slowed down even by entries we
>> can't see.
>
> No, the usage (or the main usage anyway) is for selectivity estimation,
> ie how many rows will the query fetch.

OK, so GetActiveSnapshot()?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [v9.4] row level security
Следующее
От: Tom Lane
Дата:
Сообщение: Re: getting rid of SnapshotNow