segfault with contrib lo - Mailing list pgsql-hackers

From Marc Cousin
Subject segfault with contrib lo
Date
Msg-id 2078938.ATyKPy5RM4@marco-dalibo
Whole thread Raw
Responses Re: segfault with contrib lo  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
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.

Regards,

Marc.
Attachment

pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: old warning in docs
Next
From: Robert Haas
Date:
Subject: Re: space reserved for WAL record does not match what was written: panic on windows