mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +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:
parent
d76886c2d3
commit
1310ac258c
@ -2831,9 +2831,9 @@ get_default_partition_oid(Oid parentId)
|
|||||||
|
|
||||||
part_table_form = (Form_pg_partitioned_table) GETSTRUCT(tuple);
|
part_table_form = (Form_pg_partitioned_table) GETSTRUCT(tuple);
|
||||||
defaultPartId = part_table_form->partdefid;
|
defaultPartId = part_table_form->partdefid;
|
||||||
|
ReleaseSysCache(tuple);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReleaseSysCache(tuple);
|
|
||||||
return defaultPartId;
|
return defaultPartId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user