When buying a pool, check with your municipality if there are requirements to its installation. Some municipalities have requirements for swimming pools to have enclosures.
Among others, the city of Moncton has developed a brochure for this purpose. This brochure provides general information and the complete requiements can be found in the City of Moncton zoning by-law Z-213.12.
Access to the brochure