← Back to Overview

src/backend/utils/cache/lsyscache.c

Coverage: 16/18 lines (88.9%)
Total Lines
18
modified
Covered
16
88.9%
Uncovered
2
11.1%
키보드 네비게이션
get_propgraph_label_name() lines 3886-3901
Modified Lines Coverage: 8/9 lines (88.9%)
LineHitsSourceCommit
3886 868 get_propgraph_label_name(Oid labeloid) 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3887 - { 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3888 868 HeapTuple tuple; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3889 868 char *labelname; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3890 - 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3891 868 tuple = SearchSysCache1(PROPGRAPHLABELOID, labeloid); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3892 868 if (!tuple) 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3893 - { 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3894 0 elog(ERROR, "cache lookup failed for label %u", labeloid); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3895 - return NULL; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3896 - } 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3897 868 labelname = pstrdup(NameStr(((Form_pg_propgraph_label) GETSTRUCT(tuple))->pgllabel)); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3898 868 ReleaseSysCache(tuple); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3899 - 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3900 868 return labelname; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3901 - } 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
get_propgraph_property_name() lines 3904-3919
Modified Lines Coverage: 8/9 lines (88.9%)
LineHitsSourceCommit
3904 2937 get_propgraph_property_name(Oid propoid) 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3905 - { 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3906 2937 HeapTuple tuple; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3907 2937 char *propname; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3908 - 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3909 2937 tuple = SearchSysCache1(PROPGRAPHPROPOID, propoid); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3910 2937 if (!tuple) 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3911 - { 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3912 0 elog(ERROR, "cache lookup failed for property %u", propoid); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3913 - return NULL; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3914 - } 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3915 2937 propname = pstrdup(NameStr(((Form_pg_propgraph_property) GETSTRUCT(tuple))->pgpname)); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3916 2937 ReleaseSysCache(tuple); 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3917 - 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3918 2937 return propname; 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)
3919 - } 86c14eaWIP: SQL Property Graph Queries (SQL/PGQ)