Hi @Darshan5G
It seems that the installation failed owing to not being able to build from source. Could you try adding libpq-dev to a packages.txt file as a prerequisite for building the Postgres development environment may be needed (See this relevant post for more info).
Hope this helps!