Re: COPY doesnt work on views

Поиск
Список
Период
Сортировка
От Anand Raman
Тема Re: COPY doesnt work on views
Дата
Msg-id 20001213235024.A18935@india-today.com
обсуждение исходный текст
Ответ на COPY doesnt work on views  (Steve Heaven <steve@thornet.co.uk>)
Список pgsql-general
hi
If getting the output of the query is all u want then u can spol the
output of the query to a file..
I think it is done using
\o ..
Hope this helps
Annad
On Tue, Dec 12, 2000 at 04:36:10PM +0000, Steve Heaven wrote:
>The COPY ....  TO  filename doesnt seem to work.
>Copying a table works OK. If Copy from a view isnt allowed how can I get
>the results of a query into an external file?
>
>Example:
>
>=> \d top_hits
>View    = top_hits
>Query   = SELECT "company"."name", "co_hits"."hits" FROM "company",
>"co_hits" WHERE ("co_hits"."number" = "company"."number");
>
>
>=>copy top_hits to STDOUT;
>Copy command returns...
>
>Thanks
>
>Steve
>
>--
>thorNET  - Internet Consultancy, Services & Training
>Phone: 01454 854413
>Fax:   01454 854412
>http://www.thornet.co.uk

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

Предыдущее
От: Frank Joerdens
Дата:
Сообщение: TOAST & performance with lots of big columns in a table
Следующее
От: Niral Trivedi
Дата:
Сообщение: RE: Problem with pg_hba.conf