def childrenList(cursor,cd_tax):
    """
    Retrieve all the children of a taxon in the database

    Parameters:
    ----------
    cursor: Psycopg2 cursor
        cursor for the database connection
    cd_tax: Int 
        idenfier of the taxon for which we search the children taxa
    Returns:
    -------
    all_children: List(Int)
        list of identifiers of the children taxa
    """
    foundMore = True
    all_children=[cd_tax]
    new_children = [cd_tax]
    SQL = "SELECT cd_tax FROM taxon WHERE cd_sup IN (SELECT UNNEST( %s ))"
    while foundMore:
        cursor.execute(SQL,[new_children])
        res=cursor.fetchall()
        new_children = [r[0] for r in res]
        all_children=all_children+new_children
        if(len(new_children)==0):
            foundMore=False
    all_children.sort()
    return all_children