I generally agree with ROY, but you can experience Detonation when the ignition of the Air/Fuel charge is initiated at the correct time by the correct means - the spark at the plug.
This is one subject that there is a lot of talk about that is not always correct as there are so many variations on cause and effect known by many different names.
I dont profess to understand it completely, but I do know that it is important to do everything in your control to try and prevent it.
Roy's last paragraph is good advice, and I belive that there are many other things to do that can reduce the chances as well,
including ensuring your Timing & Air/Fuel ratios are correct under boost on a dyno, your fuel filter is not more than 2/3 yrs old or not partialy blocked, injectors clean, decent fuel pump at right rail pressure, no oil soaked blowby going into your intake via PCV, Pod filter sucking hot underbonnet air, dirty Air filter, dirty Fuel pump filter, low voltage at fuel pump under load, and my personal favourites, no sharp edges in combustion chamber!
This includes Spark Plug Threads, valve reliefs in pistons, head shaved edges, valve seat machining, piston indents etc.
Unfortunately the head has to come off for these extreme measures but I think it all counts towards more safer power and if you have it off to be ported etc why not do it?
It does reduce your Comp Ratio slightly, but that lets you run more boost safely.