]> 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:21 +0000 (22:46 -0500)
commit2c3b7d2247d8989c4ef726ecdd65817c02afbf69
tree33436856a71b98637e7c400a565f258fdf211403
parentd0378c8a8c502c7d14b3e4b062988a3f1a0af6ba
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