How should I attach a pergola to my rooftop deck?
I would use titan post anchors for the posts.



For the ledger on the hollow block wall you can buy masonry anchors designed for that. Hilti makes tons of really good anchors. For hollow CMU walls, how they work is you drill the hole and insert a screen tube and fill it with the adhesive. Then when you insert the bolt it pushes the adhesive through the screen making it expand wider than the width of the hole.

Hilti



Simpson Strong Tie