]> granicus.if.org Git - postgresql/commit
Defend against bad trigger definitions in contrib/lo's lo_manage() trigger.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Nov 2013 03:45:46 +0000 (22:45 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 24 Nov 2013 03:46:43 +0000 (22:46 -0500)
commit64d15e424091d8fd2c882356ee4bf07cfc5ff69d
treed609385e4fb7e31d0d1259d1e5808df0311c321a
parenta5036ca998a6058f60913d43a80badfcbb65f5bb
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
contrib/lo/lo.c