EditorConfig

velioglu/create_timeseries_table
Burak Velioglu 2021-08-27 12:21:45 +03:00
parent ec05df9708
commit e4fbcfe3cf
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
9 changed files with 54 additions and 46 deletions

View File

@ -111,7 +111,8 @@ BEGIN
* Since partition interval can be given as, we are converting all variables to timestamptz to make sure * Since partition interval can be given as, we are converting all variables to timestamptz to make sure
* that we are comparing same type of parameters * that we are comparing same type of parameters
*/ */
PERFORM * FROM pg_catalog.time_partitions WHERE from_value::timestamptz = current_range_from_value::timestamptz AND to_value::timestamptz = current_range_to_value::timestamptz; PERFORM * FROM pg_catalog.time_partitions
WHERE from_value::timestamptz = current_range_from_value::timestamptz AND to_value::timestamptz = current_range_to_value::timestamptz;
IF found THEN IF found THEN
current_range_from_value := current_range_to_value; current_range_from_value := current_range_to_value;
current_range_to_value := current_range_to_value + table_partition_interval; current_range_to_value := current_range_to_value + table_partition_interval;

View File

@ -111,7 +111,8 @@ BEGIN
* Since partition interval can be given as, we are converting all variables to timestamptz to make sure * Since partition interval can be given as, we are converting all variables to timestamptz to make sure
* that we are comparing same type of parameters * that we are comparing same type of parameters
*/ */
PERFORM * FROM pg_catalog.time_partitions WHERE from_value::timestamptz = current_range_from_value::timestamptz AND to_value::timestamptz = current_range_to_value::timestamptz; PERFORM * FROM pg_catalog.time_partitions
WHERE from_value::timestamptz = current_range_from_value::timestamptz AND to_value::timestamptz = current_range_to_value::timestamptz;
IF found THEN IF found THEN
current_range_from_value := current_range_to_value; current_range_from_value := current_range_to_value;
current_range_to_value := current_range_to_value + table_partition_interval; current_range_to_value := current_range_to_value + table_partition_interval;

View File

@ -116,8 +116,11 @@ ORDER BY 1;
function create_distributed_function(regprocedure,text,text) function create_distributed_function(regprocedure,text,text)
function create_distributed_table(regclass,text,citus.distribution_type,text,integer) function create_distributed_table(regclass,text,citus.distribution_type,text,integer)
function create_intermediate_result(text,text) function create_intermediate_result(text,text)
function create_missing_partitions(regclass,timestamp with time zone,timestamp with time zone)
function create_reference_table(regclass) function create_reference_table(regclass)
function create_timeseries_table(regclass,interval,integer,integer,timestamp with time zone,interval,interval)
function distributed_tables_colocated(regclass,regclass) function distributed_tables_colocated(regclass,regclass)
function drop_timeseries_table(regclass)
function dump_global_wait_edges() function dump_global_wait_edges()
function dump_local_wait_edges() function dump_local_wait_edges()
function fetch_intermediate_results(text[],text,integer) function fetch_intermediate_results(text[],text,integer)
@ -128,6 +131,7 @@ ORDER BY 1;
function get_colocated_table_array(regclass) function get_colocated_table_array(regclass)
function get_current_transaction_id() function get_current_transaction_id()
function get_global_active_transactions() function get_global_active_transactions()
function get_missing_partition_ranges(regclass,timestamp with time zone,timestamp with time zone)
function get_rebalance_progress() function get_rebalance_progress()
function get_rebalance_table_shards_plan(regclass,real,integer,bigint[],boolean,name,real) function get_rebalance_table_shards_plan(regclass,real,integer,bigint[],boolean,name,real)
function get_shard_id_for_distribution_column(regclass,"any") function get_shard_id_for_distribution_column(regclass,"any")
@ -217,6 +221,7 @@ ORDER BY 1;
function worker_save_query_explain_analyze(text,jsonb) function worker_save_query_explain_analyze(text,jsonb)
schema citus schema citus
schema citus_internal schema citus_internal
schema citus_timeseries
schema columnar schema columnar
sequence columnar.storageid_seq sequence columnar.storageid_seq
sequence pg_dist_colocationid_seq sequence pg_dist_colocationid_seq
@ -225,6 +230,7 @@ ORDER BY 1;
sequence pg_dist_placement_placementid_seq sequence pg_dist_placement_placementid_seq
sequence pg_dist_shardid_seq sequence pg_dist_shardid_seq
table citus.pg_dist_object table citus.pg_dist_object
table citus_timeseries.citus_timeseries_tables
table columnar.chunk table columnar.chunk
table columnar.chunk_group table columnar.chunk_group
table columnar.options table columnar.options
@ -254,5 +260,5 @@ ORDER BY 1;
view citus_worker_stat_activity view citus_worker_stat_activity
view pg_dist_shard_placement view pg_dist_shard_placement
view time_partitions view time_partitions
(238 rows) (244 rows)