dynmamic psql state