Re: COPY is not working

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: COPY is not working
Дата
Msg-id l2t3073cc9b1004292320l89567ae0yd4c584e4d044ebdf@mail.gmail.com
обсуждение исходный текст
Ответ на Re: COPY is not working  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: COPY is not working
Список pgsql-hackers
On Fri, Apr 30, 2010 at 1:13 AM, Takahiro Itagaki
<itagaki.takahiro@oss.ntt.co.jp> wrote:
>
> Jaime Casanova <jcasanov@systemguards.com.ec> wrote:
>
>> ah! this is because COPY doesn't follow inherited tables... should it?
>
> Yes. You can use "COPY (SELECT * FROM a) TO " instead to copy all tuples.
>
> http://developer.postgresql.org/pgdocs/postgres/sql-copy.html
> | COPY can only be used with plain tables, not with views.
> | However, you can write COPY (SELECT * FROM viewname) TO ....
>
> Should we add "or parent tables" after "not with views"?
> To be exact, it would be "'COPY a parent table TO' only copies
> tuples in the parent table and does not copy inherited child tables".
>

+1 on make this clear on the docs

--
Atentamente,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157


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

Предыдущее
От: Takahiro Itagaki
Дата:
Сообщение: Re: COPY is not working
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: failed assertion and panic in standby mode