Modified PostgreSQL groupId #148

backported to 1.0.x.
Please review #148 , and merge to 1.0.x branch.