pg_partman

PostgreSQL extension for automatic table partition management

brewmacoslinux
Try with needOr install directly
Source

About

Partition management extension for PostgreSQL

Commands

pg_partman

Examples

Create a new partitioned table with time-based partitioning$ SELECT partman.create_parent('public.my_table', 'created_at', 'native', 'monthly');
Run maintenance to create future partitions$ SELECT partman.maintain_partitions('public.my_table');
Check partition information and status$ SELECT * FROM partman.show_partitions('public.my_table');