In D&D 3.5, it would indeed be a move action in the general case:
In most cases, moving or manipulating an item is a move action.
This includes retrieving or putting away a stored item, picking up an item, moving a heavy object, and opening a door. Examples of this kind of action, along with whether they incur an attack of opportunity, are given in Table: Move Actions.
Checking the Pathfinder SRD at d20pfsrd.com shows that retrieving an item is still a move action in Pathfinder:
For the frying pan, you might rule that it's easy enough to grab on to that it behaves like a Handy Haversack, or drawing a weapon. In that case, it would still be a move action but would not provoke attacks of opportunity:
When the wearer reaches into [a Handy Haversack] for a specific item, that item is always on top. Thus, no digging around and fumbling is ever necessary to find what a haversack contains. Retrieving any specific item from a haversack is a move action, but it does not provoke the attacks of opportunity that retrieving a stored item usually does.