Re: [HACKERS] COPY and views

2002-05-26 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> 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

[HACKERS] COPY and views

2002-05-25 Thread Neil Conway
Is there a reason for the following behavior? nconway=# create table a (col1 int); CREATE TABLE nconway=# insert into a default values; INSERT 1883513 1 nconway=# copy a to '/tmp/output'; COPY nconway=# create view myview as select * from a; CREATE VIEW nconway=# copy myview to '/tmp/output'; ERR