pg source working