def translate_es_name(name):
    """Translate Elasticsearch name to PostgreSQL name.

    Replaces dashes with underscores.
    """
    if name == '@timestamp':
        return 'timestamp'
    return name.replace('-', '_')
