Re: Comment typo in tableam.h - Mailing list pgsql-hackers

From Ashwin Agrawal
Subject Re: Comment typo in tableam.h
Date
Msg-id CALfoeisEXin9ZEJQVmgr7dKsfGhs54jgPq7zM=SpGJBX53GqWg@mail.gmail.com
Whole thread Raw
In response to Re: Comment typo in tableam.h  (Andres Freund <andres@anarazel.de>)
Responses Re: Comment typo in tableam.h
List pgsql-hackers

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. Seems stale piece of comment and hence that piece of text should be removed. I should have refereed to changes as general comment fixes instead of explicit typo fixes :-)

pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Binary support for pgoutput plugin
Next
From: Andres Freund
Date:
Subject: Re: Comment typo in tableam.h