Partition pruning for Star Schema

Поиск
Список
Период
Сортировка
От legrand legrand
Тема Partition pruning for Star Schema
Дата
Msg-id 1512248211188-0.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: Partition pruning for Star Schema  (Andres Freund <andres@anarazel.de>)
Re: Partition pruning for Star Schema  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список pgsql-hackers
Hello,

I have a typical star schema, having dimension tables "product", "calendar"
and "country" and a fact table "sales".
This fact table is partitionned by time (range by month) and country (list).

Will query like:

select product.name, calendar.month, sum(sales.net_price)
from sales
 inner join product on (product.id = sales.cust_id)
 inner join country on (country.id = sales.country_id)
 inner join calendar on (calendar.id = sales.calendar_id)
where
 country.name = 'HERE'
 and calendar.year = '2017'
group by product.name,calendar.month

be able to identify needed partitions ?

nb: the query has predicates on dimension tables not on columns used for
fact table partitioning:
- country.name vs sales.country_id,
- calendar.year vs sales.calendar_id.

Will this be part of postgreSQL 11 ?

Thanks in advance
Regards
PAscal





--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Custom compression methods
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Parallel Hash take II