Re: Add SPLIT PARTITION/MERGE PARTITIONS commands

Поиск
Список
Период
Сортировка
От Dmitry Koval
Тема Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Дата
Msg-id dbe8e3ac-0b85-4809-bfaf-1d11f3c9d814@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Add SPLIT PARTITION/MERGE PARTITIONS commands  (jian he <jian.universality@gmail.com>)
Ответы Re: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Список pgsql-hackers
Hi, Jiah He!

1.
 >duplicated CommandCounterIncrement call?

Probably this duplication is necessary to rename partition correctly ...


2.
 >we can simply call deparse_expression. so I removed the
 >get_list_partvalue_string.

I agree. This looks better.


3.
 >partitions_lists_intersection
 >will get all the common Const nodes in two
 >PartitionBoundSpec->listdatums.
 >but that's expensive, and we only need the first common Const location
 >for error reporting, so I refactored it too.


Ok. If a universal function is needed in the future, 
partitions_lists_intersection can be modified.


4.
 > I also heavily refactor the test again....

Thanks! Applied with minor changes.


-- 
With best regards,
Dmitry Koval

Postgres Professional: http://postgrespro.com
Вложения

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