Modified PostgreSQL groupId #148

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