What is the differences between to and = in set search_path?
There is no difference. 

If you look at the manual one is the alternative to the other. { TO | = } means either TO or = 

The meaning of that is explained at the start of the manual


  and vertical lines | indicate that you must choose one alternative