unsafe tuple releasing in get_default_partition_oid

From: Julien Rouhaud <rjuju123(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: unsafe tuple releasing in get_default_partition_oid
Date: 2017-10-28 08:03:10
Message-ID: CAOBaU_Y4omLA+VbsVdA-JwBLoJWiPxfdKCkMjrZM7NMZxa1fKw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I just noticed that get_default_partition_oid() tries to release the
tuple even if it isn't valid.
Trivial patch attached.

Attachment Content-Type Size
fix_gdpo-v1.diff text/plain 457 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Arthur Zakirov 2017-10-28 08:22:29 Re: pg_trgm word_similarity inconsistencies or bug
Previous Message Robert Haas 2017-10-28 03:20:00 Re: Transactions involving multiple postgres foreign servers