The canonical algebras (with an appendix by W. Crawley-Boevey)