checking sequence nextval test only for postgresql