About copy to view

Поиск
Список
Период
Сортировка
От Jinhua Luo
Тема About copy to view
Дата
Msg-id CAAc9rOzpzgB6kCZFgjE441KHT=LkqzEGsbo2xhqtr5CFr-igGg@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

Why view needs instead of trigger to be the target of "copy to"?
With default view rule, the insert would be successful, so it should
also works for copy.

The reason to ask this question is I need to "copy to" the view using
"replica" session role. But instead of trigger on view could not be
set to "enable always" or "enable replica", because "alter table"
would error it's not a base table, e.g.

tmp=# alter table foobar2_view enable always trigger foobar2_view_trigger;
ERROR:  "foobar2_view" is not a table or foreign table

Help please, thanks.

Regards,
Jinhua Luo



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

Предыдущее
От: "Leif Gunnar Erlandsen"
Дата:
Сообщение: pause recovery if pitr target not reached
Следующее
От: Ashutosh Sharma
Дата:
Сообщение: Re: Support for CALL statement in ecpg