[RFC] [PATCH] Flexible "partition pruning" hook

Поиск
Список
Период
Сортировка
От Mike Palmiotto
Тема [RFC] [PATCH] Flexible "partition pruning" hook
Дата
Msg-id CAMN686HzMrb5oPJN4hTqFYE1+3BJb3k__Ks+-q0c-q3k_wVveA@mail.gmail.com
обсуждение исходный текст
Ответы RE: [RFC] [PATCH] Flexible "partition pruning" hook  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Список pgsql-hackers
Greetings,

Attached is a patch which attempts to solve a few problems:

1) Filtering out partitions flexibly based on the results of an
external function call (supplied by an extension).
2) Filtering out partitions from pg_inherits based on the same function call.
3) Filtering out partitions from a partitioned table BEFORE the partition
is actually opened on-disk.

The name "partitionChildAccess_hook" comes from the fact that the
backend may not have access to a particular partition within the
partitioned table. The idea would be to silently filter out the
partition from queries to the parent table, which means also adjusting
the returned contents of find_inheritance_children based on the
external function.

I am curious how the community feels about these patches and if there
is an alternative approach to solve the above issues (perhaps
another existing hook).

Thanks for your time.

-- 
Mike Palmiotto
Software Engineer
Crunchy Data Solutions
https://crunchydata.com

Вложения

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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: POC: converting Lists into arrays
Следующее
От: Andres Freund
Дата:
Сообщение: Re: POC: converting Lists into arrays