Re: COPY and views - Mailing list pgsql-hackers

From Tom Lane
Subject Re: COPY and views
Date
Msg-id 5494.1022427457@sss.pgh.pa.us
Whole thread Raw
In response to COPY and views  (Neil Conway <nconway@klamath.dyndns.org>)
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: Re: Q: unexpected result from SRF in SQL
Next
From: Tom Lane
Date:
Subject: Re: Q: unexpected result from SRF in SQL