modification in attributes and recipes to support pg upgrade

done