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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy