is there a reason we can't copy from a view?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема is there a reason we can't copy from a view?
Дата
Msg-id 4C9BBE14.1030008@agliodbs.com
обсуждение исходный текст
Ответы Re: is there a reason we can't copy from a view?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Serializable Snapshot Isolation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: is there a reason we can't copy from a view?