Thread

Commits

  1. set_deparse_plan: Reuse variable to appease Coverity

  2. Move ModifyTableContext->lockmode to UpdateContext

  3. ExecModifyTable: use context.planSlot instead of planSlot

  1. minor MERGE cleanups

    Alvaro Herrera <alvherre@alvh.no-ip.org> — 2022-04-19T13:45:22Z

    There's a complain from Coverity about outer_plan being referenced while
    possibly NULL, which can be silenced by using an existing local
    variable.  0001 does that.
    
    0002 and 0003 are unrelated: in the former, we avoid creating a separate
    local variable planSlot when we can just refer to the eponymous member
    of ModifyTableContext.  In the latter, we reduce the scope where
    'lockmode' is defined by moving it from ModifyTableContext to
    UpdateContext, which means we can save initializing it in a few spots;
    this makes the code more natural.
    
    I expect these fixups in new code should be uncontroversial.
    
    -- 
    Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
    
  2. Re: minor MERGE cleanups

    Michael Paquier <michael@paquier.xyz> — 2022-04-20T01:29:12Z

    On Tue, Apr 19, 2022 at 03:45:22PM +0200, Alvaro Herrera wrote:
    > I expect these fixups in new code should be uncontroversial.
    
    The whole set looks rather sane to me.
    --
    Michael
    
  3. Re: minor MERGE cleanups

    Alvaro Herrera <alvherre@alvh.no-ip.org> — 2022-04-20T11:45:10Z

    On 2022-Apr-20, Michael Paquier wrote:
    
    > On Tue, Apr 19, 2022 at 03:45:22PM +0200, Alvaro Herrera wrote:
    > > I expect these fixups in new code should be uncontroversial.
    > 
    > The whole set looks rather sane to me.
    
    Thank you, I have pushed them.
    
    -- 
    Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/