Using the FAA location identifier for the main airport serving a US city as an abbreviation for a city is a not-uncommon practice for cities that don't have other well-established abbreviations.
So, PDX for Portland is consistent with that.
SFO for San Francisco is not, for the reason pointed out in GP, just as IAD for Washington, D.C. wouldn't be.