mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user