1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
CREATE FUNCTION @extschema@.create_parent(
p_parent_table text
, p_control text
, p_interval text
, p_type text DEFAULT 'range'
, p_epoch text DEFAULT 'none'
, p_premake int DEFAULT 4
, p_start_partition text DEFAULT NULL
, p_default_table boolean DEFAULT true
, p_automatic_maintenance text DEFAULT 'on'
, p_constraint_cols text[] DEFAULT NULL
, p_template_table text DEFAULT NULL
, p_jobmon boolean DEFAULT true
, p_date_trunc_interval text DEFAULT NULL
, p_control_not_null boolean DEFAULT true
, p_time_encoder text DEFAULT NULL
, p_time_decoder text DEFAULT NULL
, p_offset_id bigint DEFAULT 0
)
RETURNS boolean
LANGUAGE plpgsql
AS $$
DECLARE
BEGIN
/*
This is an alias function for create_partition() for backward compatibility
*/
RETURN @extschema@.create_partition(
p_parent_table
, p_control
, p_interval
, p_type
, p_epoch
, p_premake
, p_start_partition
, p_default_table
, p_automatic_maintenance
, p_constraint_cols
, p_template_table
, p_jobmon
, p_date_trunc_interval
, p_control_not_null
, p_time_encoder
, p_time_decoder
, p_offset_id
);
END
$$;
|