Re: [HACKERS] Event triggers + table partitioning cause server crash in current master - Mailing list pgsql-hackers

From Mark Dilger
Subject Re: [HACKERS] Event triggers + table partitioning cause server crash in current master
Date
Msg-id 5FA20C0F-07F5-496E-BBB6-B07A5C1AC75C@gmail.com
Whole thread Raw
In response to Re: [HACKERS] Event triggers + table partitioning cause server crash in current master  (Mark Dilger <hornschnorter@gmail.com>)
Responses Re: [HACKERS] Event triggers + table partitioning cause server crashin current master
List pgsql-hackers
> On May 15, 2017, at 6:49 AM, Mark Dilger <hornschnorter@gmail.com> wrote:
> 
> I can confirm that this fixes the crash that I was seeing.  I have read
> through the patch briefly, but will give it a more thorough review in the
> next few hours.

My only negative comment is that your patch follows a precedent of using
event trigger commands named for AlterTable for operations other than
an ALTER TABLE command.  You clearly are not starting the precedent
here, as they are already used for IndexStmt and ViewStmt processing, but
expanding the precedent by using them in DefineRelation, where they were
not used before, seems to move in the wrong direction.  Either the functions
should be renamed to something more general to avoid implying that the
function is ALTER TABLE specific, or different functions should be defined
and used, or ...?  I am uncertain what the right solution would be.

Thoughts?

Mark Dilger



pgsql-hackers by date:

Previous
From: Adam Brusselback
Date:
Subject: Re: [HACKERS] CTE inlining
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Small improvement to compactify_tuples