psql implementation of #index_name_exists?