def METHOD_NAME(table, dest_dir):
    """
    Save an array of column names in the order they'll be dumped.
    This allows us to recreate them on loading.
    """
    dest = os.path.join(dest_dir, table + ".json")
    with connection.cursor() as cursor:
        sql = (
            "SELECT column_name FROM information_schema.columns "
            "WHERE table_schema = 'public' AND table_name = '{}'".format(table)
        )
        cursor.execute(sql)
        fields = cursor.fetchall()
        with open(dest, "wb") as f:
            json.dump([x[0] for x in fields], f)