]> 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:03 +0000 (22:46 -0500)
commitaf1288e6812367dfb11f5b3cadb432fed74e2cd7
treec1854cc79a5a261a5d77de047c99451a9d421f9a
parentc4d3cd3dc8514147cc8d30a648e4970a2a876ca8
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