Content-Length: 260420 | pFad | http://github.com/postgrespro/postgres_cluster/commit/1310ac258c773ab9d41650b509098dd01cb4ecf3

10 Fix misplaced ReleaseSysCache call in get_default_partition_oid. · postgrespro/postgres_cluster@1310ac2 · GitHub
Skip to content

Commit 1310ac2

Browse files
committed
Fix misplaced ReleaseSysCache call in get_default_partition_oid.
Julien Rouhaud Discussion: http://postgr.es/m/CAOBaU_Y4omLA+VbsVdA-JwBLoJWiPxfdKCkMjrZM7NMZxa1fKw@mail.gmail.com
1 parent d76886c commit 1310ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/partition.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2831,9 +2831,9 @@ get_default_partition_oid(Oid parentId)
28312831

28322832
part_table_form = (Form_pg_partitioned_table) GETSTRUCT(tuple);
28332833
defaultPartId = part_table_form->partdefid;
2834+
ReleaseSysCache(tuple);
28342835
}
28352836

2836-
ReleaseSysCache(tuple);
28372837
return defaultPartId;
28382838
}
28392839

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/1310ac258c773ab9d41650b509098dd01cb4ecf3

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy