aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/commands/trigger.c')
-rw-r--r--src/backend/commands/trigger.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index 45e3225de66..30a7f605910 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -149,14 +149,10 @@ CreateTrigger(CreateTrigStmt *stmt)
ObjectIdGetDatum(((Form_pg_proc) GETSTRUCT(tuple))->prolang),
0, 0, 0);
if (!HeapTupleIsValid(langTup))
- {
elog(ERROR, "CreateTrigger: cache lookup for PL failed");
- }
if (((Form_pg_language) GETSTRUCT(langTup))->lanispl == false)
- {
elog(ERROR, "CreateTrigger: only C and PL functions are supported");
- }
}
MemSet(nulls, ' ', Natts_pg_trigger * sizeof(char));
@@ -598,9 +594,7 @@ ExecCallTriggerFunc(Trigger *trigger)
{
if (trigger->tgfunc.fn_addr == NULL)
- {
fmgr_info(trigger->tgfoid, &trigger->tgfunc);
- }
if (trigger->tgfunc.fn_plhandler != NULL)
{