sudo -u postgres createuser -s `whoami`
EDIT: No it won't:
Ophelia ~ $ sudo -u postgres whoami postgres Ophelia ~ $ sudo -u postgres echo `whoami` rich
EDIT: No it won't:
That seems straight out of The Unix Hater's Handbook.