unsafe tuple releasing in get_default_partition_oid

Julien Rouhaud <rjuju123@gmail.com>

From: Julien Rouhaud <rjuju123@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-10-28T08:03:10Z
Lists: pgsql-hackers

Attachments

Hi,

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

Commits

  1. Fix misplaced ReleaseSysCache call in get_default_partition_oid.