Parece que no Ubuntu esse cabeçalho faz parte do
libpq-dev pacote (pelo menos nas seguintes versões do Ubuntu:11.04 (Natty Narwhal), 10.04 (Lucid Lynx), 11.10 (Oneiric Ocelot), 12.04 (Precise Pangolin), 14.04 (Trusty Tahr) e 18.04 (Bionic Beaver)):...
/usr/include/postgresql/libpq-fe.h
...
Então tente instalar
libpq-dev ou seu equivalente para o seu sistema operacional:- Para sistemas Ubuntu/Debian:
sudo apt-get install libpq-dev - Em sistemas Red Hat Linux (RHEL):
yum install postgresql-devel - Para Mac Homebrew:
brew install postgresql - Para Mac MacPorts PostgreSQL:
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config - Para OpenSuse:
zypper in postgresql-devel - Para ArchLinux:
pacman -S postgresql-libs