Defend against bad trigger definitions in contrib/lo's lo_manage() trigger.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: b6da09fcba668e672bf15982dea0c369390007cb
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2013-11-24T03:46:08Z
Releases: 9.2.6
Defend against bad trigger definitions in contrib/lo's lo_manage() trigger.

This function formerly crashed if called as a statement-level trigger,
or if a column-name argument wasn't given.

In passing, add the trigger name to all error messages from the function.
(None of them are expected cases, so this shouldn't pose any compatibility
risk.)

Marc Cousin, reviewed by Sawada Masahiko

Files

PathChange+/−
contrib/lo/lo.c modified +12 −2