Re: segfault with contrib lo - Mailing list pgsql-hackers

From Sawada Masahiko
Subject Re: segfault with contrib lo
Date
Msg-id CAD21AoB-kuW8JgRmqjEd7jiSkbdDWMnYTRHD9ychU3=s9Sxw0w@mail.gmail.com
Whole thread Raw
In response to Re: segfault with contrib lo  (Marc Cousin <cousinmarc@gmail.com>)
Responses Re: segfault with contrib lo
List pgsql-hackers
On Wed, Oct 9, 2013 at 2:12 AM, Marc Cousin <cousinmarc@gmail.com> wrote:
> On Tuesday 08 October 2013 12:28:46 Robert Haas wrote:
>> On Mon, Oct 7, 2013 at 12:32 PM, Marc Cousin <cousinmarc@gmail.com> wrote:
>> > I was using the lo contrib a few days ago and wasn't paying attention, and
>> > forgot the "for each row" in the create trigger command... PostgreSQL
>> > segfaulted, when the trigger tried to access the row's attributes.
>> >
>> > Please find attached a patch to control that the trigger is correctly
>> > defined (as in the example): a before trigger, for each row, and a
>> > parameter (if the parameter was omitted, it segfaulted too). I hope I did
>> > this correctly.
>> Thanks for the patch.  Please add it to the next CommitFest.
>>
>> https://commitfest.postgresql.org/action/commitfest_view/open
> Done.
>

Sorry for late response.
I tried the patch you attached.

It is simple patch, and works fine.
It is just my suggestion that error message shows name of trigger.


Regards,

-------
Sawada Masahiko



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Regress tests to improve the function coverage of schemacmds and user and tablespace files
Next
From: Mario Weilguni
Date:
Subject: Re: Minor patch for the uuid-ossp extension