Re: speedup COPY TO for partitioned table.

Поиск
Список
Период
Сортировка
От jian he
Тема Re: speedup COPY TO for partitioned table.
Дата
Msg-id CACJufxH3mwsVyfhLpXaycC-HYnS5otNop08e15vmhM-jDBOsKw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: speedup COPY TO for partitioned table.  (Kirill Reshke <reshkekirill@gmail.com>)
Ответы Re: speedup COPY TO for partitioned table.
Список pgsql-hackers
On Thu, Apr 10, 2025 at 4:25 PM Kirill Reshke <reshkekirill@gmail.com> wrote:
>
> On Thu, 10 Apr 2025 at 07:45, jian he <jian.universality@gmail.com> wrote:
> >
> > hi.
> >
> > rebase and simplify regress tests.
>
> HI!
> You used CREATE TABLE PARTITION OF syntax for the second level of
> partitioning scheme, but not for the first level. Is there any reason?
>
hi.

I want the partitioned table and partition column position to be different.
Here, the partitioned table column order is "(id int,val int) ",
but the actual partition column order is "(val int, id int)".

> Also about column names. how about
>
> +CREATE TABLE pp (year int, day int) PARTITION BY RANGE (year);
> +CREATE TABLE pp_1 (year int, day int) PARTITION BY RANGE (day);
> +CREATE TABLE pp_2 (year int, day int) PARTITION BY RANGE (day);
>
> ??

I think the current test example is fine.



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