Skip to content

Commit

Permalink
Fixes #1400: Only initialize set_agg uniqueness state when it doesn't…
Browse files Browse the repository at this point in the history
… exist yet
  • Loading branch information
Derek Nelson committed May 29, 2016
1 parent b46a12c commit a5021b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/adt/setfuncs.c
Expand Up @@ -196,7 +196,7 @@ set_agg_combine(PG_FUNCTION_ARGS)

old = MemoryContextSwitchTo(context);

if (state == NULL)
if (fcinfo->flinfo->fn_extra == NULL)
set_agg_startup(fcinfo, incoming->element_type);

/*
Expand Down

0 comments on commit a5021b4

Please sign in to comment.