Triggers on foreign tables

Поиск
Список
Период
Сортировка
От Ronan Dunklau
Тема Triggers on foreign tables
Дата
Msg-id 1553612.aNJakFASte@ronan_laptop
обсуждение исходный текст
Ответы Re: Triggers on foreign tables  (Michael Paquier <michael.paquier@gmail.com>)
Re: Triggers on foreign tables  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
Список pgsql-hackers
Hello.

I wanted to know what it would take to implement triggers on foreign tables.
It seems that statement-level triggers can work provided they are allowed in
the code.

Please find attached a simple POC patch that implement just that.

For row-level triggers, it seems more complicated. From what I understand,
OLD/NEW tuples are fetched from the heap using their ctid (except for BEFORE
INSERT triggers). How could this be adapted for foreign tables ?


--
Ronan Dunklau
Вложения

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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: Hstore: Query speedups with Gin index
Следующее
От: "MauMau"
Дата:
Сообщение: Re: [bug fix] strerror() returns ??? in a UTF-8/C database withLC_MESSAGES=non-ASCII