Re: speedup COPY TO for partitioned table.

Поиск
Список
Период
Сортировка
От jian he
Тема Re: speedup COPY TO for partitioned table.
Дата
Msg-id CACJufxGwfg2NHWW-Vt_EuZCw6gnsi7j97FKPbXPugPYf8r2H4A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: speedup COPY TO for partitioned table.  (jian he <jian.universality@gmail.com>)
Ответы Re: speedup COPY TO for partitioned table.
Re: speedup COPY TO for partitioned table.
Список pgsql-hackers
On Fri, Mar 7, 2025 at 6:41 PM jian he <jian.universality@gmail.com> wrote:
>
> hi.
>
> rebased and polished patch attached, test case added.
hi.

I realized I need to change the doc/src/sgml/ref/copy.sgml
<title>Notes</title> section.

current doc note section:
COPY TO can be used only with plain tables, not views, and does not
copy rows from child tables or child partitions.
For example, COPY table TO copies the same rows as SELECT * FROM ONLY table.
The syntax COPY (SELECT * FROM table) TO ... can be used to dump all
of the rows in an inheritance hierarchy, partitioned table, or view.

after my change:
------------
COPY TO can be used only with plain tables, not views, and does not
copy rows from child tables,
however COPY TO can be used with partitioned tables.
For example, in a table inheritance hierarchy, COPY table TO copies
the same rows as SELECT * FROM ONLY table.
The syntax COPY (SELECT * FROM table) TO ... can be used to dump all
of the rows in an inheritance hierarchy, or view.
------------

Вложения

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