setval works as supposed to.