Thread

Commits

  1. Optimize pg_visibility with read streams.

  2. Revert "Optimize pg_visibility with read streams."

  3. Add block_range_read_stream_cb(), to deduplicate code.

  1. Avoid dead code (contrib/pg_visibility/pg_visibility.c)

    Ranier Vilela <ranier.vf@gmail.com> — 2024-09-04T16:50:24Z

    Hi.
    
    Per coverity.
    
    I think that commit c582b75
    <https://github.com/postgres/postgres/commit/c582b75851c2d096ce050d753494505a957cee75>,
    left an oversight.
    
    The report is:
    CID 1559993: (#1 of 1): Logically dead code (DEADCODE)
    
    Trivial patch attached.
    
    best regards,
    Ranier Vilela
    
  2. Re: Avoid dead code (contrib/pg_visibility/pg_visibility.c)

    Michael Paquier <michael@paquier.xyz> — 2024-09-12T05:18:35Z

    On Wed, Sep 04, 2024 at 01:50:24PM -0300, Ranier Vilela wrote:
    > I think that commit c582b75
    > <https://github.com/postgres/postgres/commit/c582b75851c2d096ce050d753494505a957cee75>,
    > left an oversight.
    > 
    > The report is:
    > CID 1559993: (#1 of 1): Logically dead code (DEADCODE)
    > 
    > Trivial patch attached.
    
    I am not sure to understand what you mean here and if this is still
    relevant as of Noah's latest commit in 65c310b310a6.
    --
    Michael
    
  3. Re: Avoid dead code (contrib/pg_visibility/pg_visibility.c)

    Nazir Bilal Yavuz <byavuz81@gmail.com> — 2024-09-12T06:10:44Z

    Hi,
    
    On Thu, 12 Sept 2024 at 08:19, Michael Paquier <michael@paquier.xyz> wrote:
    >
    > On Wed, Sep 04, 2024 at 01:50:24PM -0300, Ranier Vilela wrote:
    > > I think that commit c582b75
    > > <https://github.com/postgres/postgres/commit/c582b75851c2d096ce050d753494505a957cee75>,
    > > left an oversight.
    > >
    > > The report is:
    > > CID 1559993: (#1 of 1): Logically dead code (DEADCODE)
    
    Thanks for the report!
    
    > I am not sure to understand what you mean here and if this is still
    > relevant as of Noah's latest commit in 65c310b310a6.
    
    This should be fixed in 65c310b310a6.
    
    -- 
    Regards,
    Nazir Bilal Yavuz
    Microsoft
    
    
    
    
  4. Re: Avoid dead code (contrib/pg_visibility/pg_visibility.c)

    Ranier Vilela <ranier.vf@gmail.com> — 2024-09-12T12:07:20Z

    Em qui., 12 de set. de 2024 às 02:18, Michael Paquier <michael@paquier.xyz>
    escreveu:
    
    > On Wed, Sep 04, 2024 at 01:50:24PM -0300, Ranier Vilela wrote:
    > > I think that commit c582b75
    > > <
    > https://github.com/postgres/postgres/commit/c582b75851c2d096ce050d753494505a957cee75
    > >,
    > > left an oversight.
    > >
    > > The report is:
    > > CID 1559993: (#1 of 1): Logically dead code (DEADCODE)
    > >
    > > Trivial patch attached.
    >
    > I am not sure to understand what you mean here and if this is still
    > relevant as of Noah's latest commit in 65c310b310a6.
    >
    Sorry Michael, but this patch became irrelevant after ddfc556
    <http://ddfc556a644404a8942e77651f75f09aa5188782>
    Note the omission to connect the dots, from the commit.
    
    best regards,
    Ranier Vilela
    
  5. Re: Avoid dead code (contrib/pg_visibility/pg_visibility.c)

    Michael Paquier <michael@paquier.xyz> — 2024-09-13T00:10:02Z

    On Thu, Sep 12, 2024 at 09:10:44AM +0300, Nazir Bilal Yavuz wrote:
    > This should be fixed in 65c310b310a6.
    
    Thanks for the confirmation.
    --
    Michael