Create partman schema (#1747)

Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
Sergio C. Arteaga 2021-12-14 14:46:37 +01:00 committed by GitHub
parent bb116bc1ca
commit f38a6afabe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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);