pgsql: Defend against bad trigger definitions in contrib/lo's lo_manage - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Defend against bad trigger definitions in contrib/lo's lo_manage
Date
Msg-id E1VkQey-0004Cd-I6@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2c3b7d2247d8989c4ef726ecdd65817c02afbf69

Modified Files
--------------
contrib/lo/lo.c |   14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: PL/Tcl: Add event trigger support
Next
From: Tom Lane
Date:
Subject: pgsql: Defend against bad trigger definitions in contrib/lo's lo_manage