You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi is there any thing else i have to do ??
if i want pg_partman continue making partitions i have to run run_maintenance manually . although i worked on bgw but still does not automatically make partitions . what should i do ??
Hi is there any thing else i have to do ??
if i want pg_partman continue making partitions i have to run run_maintenance manually . although i worked on bgw but still does not automatically make partitions . what should i do ??
CREATE SCHEMA partman ;
CREATE EXTENSION pg_partman SCHEMA partman ;
CREATE TABLE partman.users
(
user_id SERIAL ,
user_name VARCHAR (30) ,
user_reg_date TIMESTAMP ,
CONSTRAINT pk_id_reg PRIMARY KEY (user_id , user_reg_Date)
)
PARTITION BY RANGE (user_reg_date);
SELECT partman.create_parent
(
p_parent_table => 'partman.users',
p_control => 'user_reg_date',
p_type => 'native',
p_interval=> '2 minutes',
p_premake => 2
);
UPDATE partman.part_config
SET infinite_time_partitions = 'true' ;
ALTER SYSTEM
SET
shared_preload_libraries = 'pg_partman_bgw';
SET pg_partman_bgw.database = 'Optimization' ;
SET pg_partman_bgw.interval = 60 ;
The text was updated successfully, but these errors were encountered: