Re: Segfault when creating partition with a primary key and sql_droptrigger exists - Mailing list pgsql-hackers

From Arthur Zakirov
Subject Re: Segfault when creating partition with a primary key and sql_droptrigger exists
Date
Msg-id 175fc986-f024-b048-98a9-94a563bad550@postgrespro.ru
Whole thread Raw
In response to Re: Segfault when creating partition with a primary key and sql_droptrigger exists  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Hello,

On 10/6/18 7:50 PM, Alvaro Herrera wrote:
> here's my proposed patch.

There is an incorrect assert condition within 
EventTriggerCollectAlterTableSubcmd(). Maybe it should be like this?

-   Assert(OidIsValid(currentEventTriggerState->currentCommand));
+   Assert(currentEventTriggerState->currentCommand);

-- 
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company


pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: out-of-order XID insertion in KnownAssignedXids
Next
From: Peter Eisentraut
Date:
Subject: Re: Procedure calls are not tracked in pg_stat_user_functions /track_functions