Re: getting rid of SnapshotNow

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: getting rid of SnapshotNow
Date: 2013-07-23 18:49:50
Message-ID: CA+TgmoZEw3U2sNY7Ry5mO6wMxLmqaxyjxdiYhMSAA2W-UkTH8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-odbc

On Tue, Jul 23, 2013 at 2:24 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On Tue, Jul 23, 2013 at 12:28 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-07-23 18:53:49 Re: getting rid of SnapshotNow
Previous Message Josh Berkus 2013-07-23 18:30:14 Re: [v9.4] row level security

Browse pgsql-odbc by date

  From Date Subject
Next Message Tom Lane 2013-07-23 18:53:49 Re: getting rid of SnapshotNow
Previous Message Matt Lilley 2013-07-23 18:32:49 FORMAT_INTEGER is wrong on (some) 64 bit platforms?