In Canada it is legal to use a pistol for lethal force if justified. The problem is our gun lock laws contradict this. Most people keep there guns in a safe in a room other then there bedroom. If something goes bump in the night, most will not have enough time to go to there safe unlock and grab a pistol. The other alternative is having your pistol in its original case locked and under your bed. Again the problem is time, If a knife or gun wielding maniac crashes your house most likely you will not have enough time to open the case, find the key and unlock and load your pistol. Unfortunatly while you're fumbling with the key, the intruder is breathing down your neck. aka you're f**ked!
The answer is, Buy a small pistol safe and put it right beside your bed. (I got one from costco for a couple hundred) Trust me this is your ultimate insurance policy. Store your loaded mags in a simple wooden box on top of the safe. Every night before you go to bed enter the code and leave the safe door ajar, and every morning lock the safe. Keep in mind, leaving the door open is not, legally correct. The key is make sure you buy an electronic combo safe, it's easy to justify to the courts that you were able to punch in the four digit code, rather then fumbling with a traditional combo lock. If there is a bump in the night you will be ready to protect yourself and your family, whats more, is this solution is perfectly legal, and worst case scenario easy to justify to the courts if need be...