The real pistols
The US Army adopted the M9, a 9mm Beretta, in the mid 1980s. The Soviet Army carried the Makarov PM, a small 9x18mm pistol. Both are sidearms for crews, officers and specialists.
In the game
A pistol is a backup. Switch to it when your main weapon is empty in a close fight and there is no time to reload. It is also handy for crews and pilots, who have little room for a rifle.
Pistols are weak past short range. Do not start a fight with one.
Which loadouts get a pistol by default is not confirmed for 1.8.
See also
Patches change details. If something here no longer matches the game, suggest an edit.