Thread

Commits

  1. Fix misplaced ReleaseSysCache call in get_default_partition_oid.

  1. unsafe tuple releasing in get_default_partition_oid

    Julien Rouhaud <rjuju123@gmail.com> — 2017-10-28T08:03:10Z

    Hi,
    
    I just noticed that get_default_partition_oid() tries to release the
    tuple even if it isn't valid.
    Trivial patch attached.
    
  2. Re: unsafe tuple releasing in get_default_partition_oid

    Robert Haas <robertmhaas@gmail.com> — 2017-10-28T09:13:20Z

    On Sat, Oct 28, 2017 at 10:03 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
    > I just noticed that get_default_partition_oid() tries to release the
    > tuple even if it isn't valid.
    > Trivial patch attached.
    
    Oops.  I wonder how that managed to survive testing.
    
    Committed.
    
    -- 
    Robert Haas
    EnterpriseDB: http://www.enterprisedb.com
    The Enterprise PostgreSQL Company
    
    
    
  3. Re: unsafe tuple releasing in get_default_partition_oid

    Julien Rouhaud <rjuju123@gmail.com> — 2017-10-28T17:44:24Z

    On Sat, Oct 28, 2017 at 11:13 AM, Robert Haas <robertmhaas@gmail.com> wrote:
    > On Sat, Oct 28, 2017 at 10:03 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
    >> I just noticed that get_default_partition_oid() tries to release the
    >> tuple even if it isn't valid.
    >> Trivial patch attached.
    >
    > Oops.  I wonder how that managed to survive testing.
    >
    > Committed.
    
    Thanks!