]> 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:08 +0000 (22:46 -0500)
commitb6da09fcba668e672bf15982dea0c369390007cb
treefcd05cc39a317f25a13497af166c3251003296c0
parent96ac8b51821ac6726cd72a639d3a0a1a5f52bd41
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