def child_table_names(conn, parent_name):
    """Return a list of table names for a parent table name."""
    with conn.cursor() as cursor:
        cursor.execute("""SELECT c.relname AS child_tblname
                            FROM pg_inherits
                            JOIN pg_class AS c
                                 ON (c.oid = inhrelid)
                            JOIN pg_class AS p
                                 ON (p.oid = inhparent)
                            JOIN pg_catalog.pg_namespace nc
                                 ON nc.oid = c.relnamespace
                            JOIN pg_catalog.pg_namespace np
                                 ON np.oid = p.relnamespace
                           WHERE p.relname = %s
                             AND np.nspname = current_schema()
                             AND nc.nspname = current_schema()""",
                       [parent_name])
        return [res.child_tblname for res in cursor]