Fix misplaced ReleaseSysCache call in get_default_partition_oid.

Julien Rouhaud

Discussion: http://postgr.es/m/CAOBaU_Y4omLA+VbsVdA-JwBLoJWiPxfdKCkMjrZM7NMZxa1fKw@mail.gmail.com
This commit is contained in:
Robert Haas 2017-10-28 11:10:21 +02:00
parent d76886c2d3
commit 1310ac258c
1 changed files with 1 additions and 1 deletions

View File

@ -2831,9 +2831,9 @@ get_default_partition_oid(Oid parentId)
part_table_form = (Form_pg_partitioned_table) GETSTRUCT(tuple);
defaultPartId = part_table_form->partdefid;
ReleaseSysCache(tuple);
}
ReleaseSysCache(tuple);
return defaultPartId;
}