Hogs are interesting regarding electric fence. I'd bring home a load of 20 or so hogs from the auction and put them in a large holding pen made out of pallets. About 6" above the bottom of the pallets was a run of wire all around the pen. The next morning all of the hogs would be in a pile in the center of the pen just about equidistant from each wall.
Granted, they couldn't see beyond the pallets but one wall was field fencing (hog wire) with electric and they didn't challenge it.
What they do is routinely test the wire to see if it is on. The hogs are willing to take a shock every once in a while. Clever buggers. That is why I wrote that electric fence could be used with hogs "to a lesser extent".
In spring they were allowed out in the pasture to feed and the pasture has electric fence like the pen had. It was all field fenced. They would test that, too. Every so often the fence would be shorted out and a round of pig herding was necessary as they would immediately root under the fence.
Can't say they are missed. But home-raised pork is quite good.