is there a reason we can't copy from a view? - Mailing list pgsql-hackers

From Josh Berkus
Subject is there a reason we can't copy from a view?
Date
Msg-id 4C9BBE14.1030008@agliodbs.com
Whole thread Raw
Responses Re: is there a reason we can't copy from a view?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
... other than it just got forgotten?

dolszewski=# create view meh as select * from pg_tables;
CREATE VIEW
dolszewski=# copy meh to stdout;
ERROR:  cannot copy from view "meh"
HINT:  Try the COPY (SELECT ...) TO variant.
dolszewski=# copy (select * from meh) to stdout;
pg_catalogpg_statisticpostgres\Ntff
pg_catalogpg_typepostgres\Ntff

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Serializable Snapshot Isolation
Next
From: Tom Lane
Date:
Subject: Re: is there a reason we can't copy from a view?