add pgdg apt support, improved debian/ubuntu support with older postgres versions