def category_table(osm_table_name):
    """
    Returns an OSM category table definition

    Args:
        osm_table_name (string): an OSM PostGIS table name

    Returns:
        sql (string): a sql statement
    """

    sql = ("CREATE TEMPORARY TABLE category_%s "
           "(osm_id integer, "
           "cat smallint, "
           "PRIMARY KEY (osm_id))")
    sql = sql % (osm_table_name)

    return sql