The difficulty depends on many things.
I would say PT post is the way to go, but install it over a post standoff past so water doesnt get trapped between the bottom of the post and whatever it is sitting on causing premature rot.
Are you trying to keep the dog on the deck or off? How big of dog are you talking about?