hosts = {{ salt['pillar.get']("model:postgres:host") }}
user = {{ salt['pillar.get']("model:postgres:user") }}
password = {{ salt['pillar.get']("model:postgres:password") }}
dbname = {{ salt['pillar.get']("model:postgres:database") }}
query = SELECT goto FROM alias WHERE address=((regexp_split_to_array('%s', '\+|@'))[1]) || '@' || split_part('%s', '@', 2) AND active = true AND is_regexp = false
