Commit 1310ac25 authored by Robert Haas's avatar Robert Haas

Fix misplaced ReleaseSysCache call in get_default_partition_oid.

Julien Rouhaud

Discussion: http://postgr.es/m/CAOBaU_Y4omLA+VbsVdA-JwBLoJWiPxfdKCkMjrZM7NMZxa1fKw@mail.gmail.com
parent d76886c2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment