Re: Comment typo in tableam.h

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Comment typo in tableam.h
Дата
Msg-id 20190604012415.5wiokl2kfelfqmxi@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Comment typo in tableam.h  (Ashwin Agrawal <aagrawal@pivotal.io>)
Ответы Re: Comment typo in tableam.h  (Ashwin Agrawal <aagrawal@pivotal.io>)
Список pgsql-hackers
Hi,

On 2019-06-03 18:21:56 -0700, Ashwin Agrawal wrote:
> On Mon, Jun 3, 2019 at 5:26 PM Andres Freund <andres@anarazel.de> wrote:
> 
> > Hi,
> >
> > Thanks for these!
> >
> > On 2019-06-03 17:24:15 -0700, Ashwin Agrawal wrote:
> > >       /*
> > >        * Estimate the size of shared memory needed for a parallel scan
> > of this
> > > -      * relation. The snapshot does not need to be accounted for.
> > > +      * relation.
> > >        */
> > >       Size            (*parallelscan_estimate) (Relation rel);
> >
> > That's not a typo?
> >
> 
> The snapshot is not passed as argument to that function hence seems weird
> to refer to snapshot in the comment, as anyways callback function can't
> account for it.

It's part of the parallel scan struct, and it used to be accounted for
by pre tableam function...

Greetings,

Andres Freund



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

Предыдущее
От: Ashwin Agrawal
Дата:
Сообщение: Re: Comment typo in tableam.h
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Confusing error message for REINDEX TABLE CONCURRENTLY