Re: Segfault when creating partition with a primary key and sql_droptrigger exists

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Segfault when creating partition with a primary key and sql_droptrigger exists
Дата
Msg-id 20180928031700.GE1500@paquier.xyz
обсуждение исходный текст
Ответ на Re: Segfault when creating partition with a primary key and sql_droptrigger exists  (Dmitry Dolgov <9erthalion6@gmail.com>)
Ответы Re: Segfault when creating partition with a primary key and sql_droptrigger exists  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Thu, Sep 27, 2018 at 11:02:06PM +0200, Dmitry Dolgov wrote:
> Yes, you're right. Although probably it's not great that the sequence of
> EventTriggerAlterTableStart, EventTriggerAlterTableRelid and
> EventTriggerAlterTableEnd is distributed between different functions (which
> most likely is worth a comment in AlterTableInternal), but it's a minor
> concern.

I think that Alvaro should definitely look at this patch to be sure, or
I could do it, but I would need to spend way more time on this and check
event trigger interactions.

Anyway, I was struggling a bit regarding the location where adding a
regression test.  event_trigger.sql makes the most sense but in tests
for drops the objects are created before the event trigger is defined,
so that would need to move around so as the original problem is
reproducible.  Perhaps you have an idea for that?
--
Michael

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: heap_sync seems rather oblivious to partitioned tables(wal_level=minimal)
Следующее
От: Michael Paquier
Дата:
Сообщение: Use durable_unlink for .ready and .done files for WAL segment removal