Skip to content
Snippets Groups Projects
Commit ddef9a00 authored by Robert Haas's avatar Robert Haas
Browse files

Fix a few small bugs in yesterday's event trigger patch.

Dimitri Fontaine
parent 4c977319
No related branches found
No related tags found
No related merge requests found
......@@ -551,7 +551,7 @@ filter_event_trigger(const char **tag, EventTriggerCacheItem *item)
}
/* Filter by tags, if any were specified. */
if (item->ntags != 0 && bsearch(&tag, item->tag,
if (item->ntags != 0 && bsearch(tag, item->tag,
item->ntags, sizeof(char *),
pg_qsort_strcmp) == NULL)
return false;
......@@ -752,6 +752,9 @@ EventTriggerInvoke(List *fn_oid_list, EventTriggerData *trigdata)
ListCell *lc;
bool first = true;
/* Guard against stack overflow due to recursive event trigger */
check_stack_depth();
/*
* Let's evaluate event triggers in their own memory context, so
* that any leaks get cleaned up promptly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment