[EDIT] original title of this question was \"Getting the last element of a Postgres array, declaratively\"
How to obtain the last element of the array in Postgr
You can combine string_to_array and array_length
select (string_to_array(column_name, '.'))[array_length((string_to_array(column_name, '.')), 1)] from table_name;
This will split the string in column_name into array using "." as delimiter and will give you the last part