Re: How to properly use the Executor interface?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to properly use the Executor interface?
Дата
Msg-id 10818.1541446938@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to properly use the Executor interface?  (Kai Kratz <kai.kratz@swarm64.com>)
Список pgsql-hackers
Kai Kratz <kai.kratz@swarm64.com> writes:
> first time writing to the hackers list, so I hope this is the right place to ask. I recently joined Swarm64 and we
arebuilding a postgres extension with the fdw interface. 

> I am trying to evaluate sql statements with ExecutorBeing, -Run, -End, -Finish calls during ExecForeignInsert.

This seems ... uh ... really bizarre.  Why would you want an FDW to push
actions back into the executor?  I'm having a hard time envisioning
use-cases that wouldn't be better handled by, say, updatable views.

Anyway, you might be better off to go through SPI rather than try to call
the executor directly.  It's better documented and we try to avoid
breaking those APIs, whereas the core executor APIs change regularly.

            regards, tom lane


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Getting ERROR: could not open file "base/13164/t3_16388" withpartition table with ON COMMIT
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Reduce maintenance burden of alternative output files with \if\quit