We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents feb5ad7 + 30ef143 commit 2b2ead4Copy full SHA for 2b2ead4
src/aggregation/common.c
@@ -22,9 +22,9 @@ PG_FUNCTION_INFO_V1(anon_agg_state_finalfn);
22
23
const AnonAggFuncs *find_agg_funcs(Oid oid)
24
{
25
- Assert(OidIsValid(oid));
26
-
27
- if (oid == g_oid_cache.anon_count_star)
+ if (!OidIsValid(oid))
+ return NULL;
+ else if (oid == g_oid_cache.anon_count_star)
28
return &g_count_star_funcs;
29
else if (oid == g_oid_cache.anon_count_value)
30
return &g_count_value_funcs;
0 commit comments