Re: COPY and views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY and views
Дата
Msg-id 5494.1022427457@sss.pgh.pa.us
обсуждение исходный текст
Ответ на COPY and views  (Neil Conway <nconway@klamath.dyndns.org>)
Список pgsql-hackers
Neil Conway <nconway@klamath.dyndns.org> writes:
> I can understand not allowing COPY FROM to target a view
> (or at least, a view without an insertion rule defined) --
> but is there a similar reason for disallowing copying data
> out of a view?

Allowing either would take COPY out of the realm of utility statements
and into the realm of plannable queries --- in particular, COPY from a
view would have to have full SELECT capability, with only a slightly
different user interface for delivering the tuples.

This would not necessarily be a bad idea ... but it would be a major
rewrite of COPY.
        regards, tom lane


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Q: unexpected result from SRF in SQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Q: unexpected result from SRF in SQL