Primers for paint - questions

Hi all,
I need a primer on primers.
Can you use any sort of primer on, say, an epoxy surface? Or should one use an epoxy primer? What about a wood surface? Metal surface?
Are there certain primers for certain kinds of paint? I see epoxy primers - can I use any sort of paint on that? How does primer provide a good grip on both the underserface as well as the paint?

Replicas of 15th-19th century nautical navigational instruments:
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file
Upload is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.