From 5250e4b6bf45e8e3951ea91f09631e3cff4ec03c Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 16 Apr 2024 17:17:30 +0000 Subject: [PATCH 1/2] Add new pgsql 16 functions Signed-off-by: Matthew Peveler --- src/basic-languages/pgsql/pgsql.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/basic-languages/pgsql/pgsql.ts b/src/basic-languages/pgsql/pgsql.ts index 2eb663b42a..ef4f201192 100644 --- a/src/basic-languages/pgsql/pgsql.ts +++ b/src/basic-languages/pgsql/pgsql.ts @@ -171,6 +171,7 @@ export const language = { 'acosh', 'age', 'any', + 'any_value', 'area', 'array_agg', 'array_append', @@ -185,6 +186,8 @@ export const language = { 'array_prepend', 'array_remove', 'array_replace', + 'array_sample', + 'array_shuffle', 'array_to_json', 'array_to_string', 'array_to_tsvector', @@ -255,8 +258,10 @@ export const language = { 'currval', 'cursor_to_xml', 'cursor_to_xmlschema', + 'date_add', 'date_bin', 'date_part', + 'date_subtract', 'date_trunc', 'database_to_xml', 'database_to_xml_and_xmlschema', @@ -271,6 +276,8 @@ export const language = { 'enum_first', 'enum_last', 'enum_range', + 'erf', + 'erfc', 'every', 'exp', 'extract', @@ -317,9 +324,12 @@ export const language = { 'isfinite', 'isopen', 'json_agg', + 'json_agg_strict', + 'json_array', 'json_array_elements', 'json_array_elements_text', 'json_array_length', + 'json_arrayagg', 'json_build_array', 'json_build_object', 'json_each', @@ -328,7 +338,11 @@ export const language = { 'json_extract_path_text', 'json_object', 'json_object_agg', + 'json_object_agg_strict', + 'json_object_agg_unique', + 'json_object_agg_unique_strict', 'json_object_keys', + 'json_objectagg', 'json_populate_record', 'json_populate_recordset', 'json_strip_nulls', @@ -337,6 +351,7 @@ export const language = { 'json_to_tsvector', 'json_typeof', 'jsonb_agg', + 'jsonb_agg_strict', 'jsonb_array_elements', 'jsonb_array_elements_text', 'jsonb_array_length', @@ -349,6 +364,9 @@ export const language = { 'jsonb_insert', 'jsonb_object', 'jsonb_object_agg', + 'jsonb_object_agg_strict', + 'jsonb_object_agg_unique', + 'jsonb_object_agg_unique_strict', 'jsonb_object_keys', 'jsonb_path_exists', 'jsonb_path_match', @@ -502,6 +520,8 @@ export const language = { 'pg_index_has_property', 'pg_indexam_has_property', 'pg_indexes_size', + 'pg_input_is_valid', + 'pg_input_error_info', 'pg_is_in_backup', 'pg_is_in_recovery', 'pg_is_other_temp_schema', @@ -566,6 +586,7 @@ export const language = { 'pg_snapshot_xip', 'pg_snapshot_xmax', 'pg_snapshot_xmin', + 'pg_split_walfile_name', 'pg_start_backup', 'pg_stat_file', 'pg_statistics_obj_is_visible', @@ -623,6 +644,7 @@ export const language = { 'radians', 'radius', 'random', + 'random_normal', 'range_agg', 'range_intersect_agg', 'range_merge', From 69e7a6fa08598938a07d9fe2c3fb28dd200cdcb5 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Thu, 7 Nov 2024 05:25:07 +0000 Subject: [PATCH 2/2] Add pgsql 17 functions --- src/basic-languages/pgsql/pgsql.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/basic-languages/pgsql/pgsql.ts b/src/basic-languages/pgsql/pgsql.ts index ef4f201192..ea6263df5e 100644 --- a/src/basic-languages/pgsql/pgsql.ts +++ b/src/basic-languages/pgsql/pgsql.ts @@ -312,6 +312,7 @@ export const language = { 'height', 'host', 'hostmask', + 'icu_unicode_version', 'inet_client_addr', 'inet_client_port', 'inet_merge', @@ -323,6 +324,7 @@ export const language = { 'isempty', 'isfinite', 'isopen', + 'json', 'json_agg', 'json_agg_strict', 'json_array', @@ -334,6 +336,7 @@ export const language = { 'json_build_object', 'json_each', 'json_each_text', + 'json_exists', 'json_extract_path', 'json_extract_path_text', 'json_object', @@ -345,11 +348,16 @@ export const language = { 'json_objectagg', 'json_populate_record', 'json_populate_recordset', + 'json_query', + 'json_scalar', + 'json_serialize', 'json_strip_nulls', + 'json_table', 'json_to_record', 'json_to_recordset', 'json_to_tsvector', 'json_typeof', + 'json_value', 'jsonb_agg', 'jsonb_agg_strict', 'jsonb_array_elements', @@ -456,6 +464,7 @@ export const language = { 'pg_advisory_xact_lock_shared', 'pg_backend_pid', 'pg_backup_start_time', + 'pg_basetype', 'pg_blocking_pids', 'pg_cancel_backend', 'pg_client_encoding', @@ -463,6 +472,7 @@ export const language = { 'pg_collation_is_visible', 'pg_column_compression', 'pg_column_size', + 'pg_column_toast_chunk_id', 'pg_conf_load_time', 'pg_control_checkpoint', 'pg_control_init', @@ -593,6 +603,7 @@ export const language = { 'pg_stop_backup', 'pg_switch_wal', 'pg_switch_xlog', + 'pg_sync_replication_slots', 'pg_table_is_visible', 'pg_table_size', 'pg_tablespace_databases', @@ -726,11 +737,13 @@ export const language = { 'timeofday', 'timezone', 'to_ascii', + 'to_bin', 'to_char', 'to_date', 'to_hex', 'to_json', 'to_number', + 'to_oct', 'to_regclass', 'to_regcollation', 'to_regnamespace', @@ -740,6 +753,7 @@ export const language = { 'to_regprocedure', 'to_regrole', 'to_regtype', + 'to_regtypemod', 'to_timestamp', 'to_tsquery', 'to_tsvector', @@ -772,12 +786,16 @@ export const language = { 'txid_snapshot_xmin', 'txid_status', 'txid_visible_in_snapshot', + 'unicode_assigned', + 'unicode_version', 'unistr', 'unnest', 'upper', 'upper_inc', 'upper_inf', 'user', + 'uuid_extract_timestamp', + 'uuid_extract_version', 'var_pop', 'var_samp', 'variance', @@ -798,6 +816,7 @@ export const language = { 'xmlpi', 'xmlroot', 'xmlserialize', + 'xmltext', 'xpath', 'xpath_exists' ],