mirror of https://github.com/artifacthub/hub.git
Create partman schema (#1747)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
parent
bb116bc1ca
commit
f38a6afabe
|
|
@ -0,0 +1,12 @@
|
||||||
|
drop extension pg_partman;
|
||||||
|
create schema partman;
|
||||||
|
create extension pg_partman schema partman;
|
||||||
|
drop table template_public_package_views;
|
||||||
|
select partman.create_parent('public.package_views', 'day', 'native', 'monthly', p_start_partition := current_date::text);
|
||||||
|
|
||||||
|
---- create above / drop below ----
|
||||||
|
|
||||||
|
drop extension pg_partman;
|
||||||
|
drop schema partman cascade;
|
||||||
|
create extension pg_partman;
|
||||||
|
select create_parent('public.package_views', 'day', 'native', 'monthly', p_start_partition := current_date::text);
|
||||||
Loading…
Reference in New Issue