Re: Performing partition pruning using row value

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: Performing partition pruning using row value
Дата
Msg-id 7973d37d-bd98-034b-21be-daaa71456191@oss.nttdata.com
обсуждение исходный текст
Ответ на RE: Performing partition pruning using row value  ("kato-sho@fujitsu.com" <kato-sho@fujitsu.com>)
Ответы RE: Performing partition pruning using row value  ("kato-sho@fujitsu.com" <kato-sho@fujitsu.com>)
Список pgsql-hackers

On 2020/07/08 13:25, kato-sho@fujitsu.com wrote:
> Amit-san
> 
> On Wednesday, July 8, 2020 11:53 AM, Amit Langote <amitlangote09@gmail.com>:
>> I think the only reason that this is not supported is that I hadn't tested such a
>> query when developing partition pruning, nor did anyone else suggest doing
>> so. :)

Seems we can do partition pruning even in Kato-san's case by dong

create type hoge as (c1 int, c2 int);
create table a( c1 int, c2 int, c3 varchar) partition by range(((c1, c2)::hoge));
create table a1 partition of a for values from((0, 0)) to ((100, 100));
create table a2 partition of a for values from((100, 100)) to ((200, 200));
explain select * from a where (c1, c2)::hoge < (99, 99)::hoge;

I'm not sure if this method is officially supported or not, though...

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Collation versioning
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Modifying data type of slot_keep_segs from XLogRecPtr to XLogSegNo