In order for the icon to appear correctly in the Alt-Tab dialog, it needs to be 32x32. If elephant48.png is the same as the icon that is passed to SetIcon by pgAdmin3, then the reason Alt-Tab doesn't work is because the icon is the wrong size.
ahp