A pig stick
is a staff that carries a flag
, usually the burgee of the boat owner's yacht club, above a mast
of a sailboat
, it's connected to a halyard
so when it's raised the top of the mast, the "pig stick" extends above the mast allowing the flag to be seen flying above the boat's sails.