Attached pergolas are secured to a ledger board on a wall.
Free standing pergolas are four+ posts away from a wall.
Specialty pergolas feature two-three posts, no posts, or odd shapes.