* func_strict * Given procedure id, return the function's proisstrict flag. */
| 2390 | * Given procedure id, return the function's proisstrict flag. |
| 2391 | */ |
| 2392 | bool |
| 2393 | func_strict(Oid funcid) |
| 2394 | { |
| 2395 | HeapTuple tp; |
| 2396 | bool result; |
| 2397 | |
| 2398 | tp = SearchSysCache1(PROCOID, ObjectIdGetDatum(funcid)); |
| 2399 | if (!HeapTupleIsValid(tp)) |
| 2400 | elog(ERROR, "cache lookup failed for function %u", funcid); |
| 2401 | |
| 2402 | result = ((Form_pg_proc) GETSTRUCT(tp))->proisstrict; |
| 2403 | ReleaseSysCache(tp); |
| 2404 | return result; |
| 2405 | } |
| 2406 | |
| 2407 | /* |
| 2408 | * func_volatile |