I've tried to compile libpq (PostgreSQL client library) and pgsql-cli (Command Line Interface for PostgreSQL databases) with OpenSSL support. I've changed Makefile(feeds/packeges/libs/postgresql/Makefile) :
From:
PG Bug reporting form Date: Subject:
BUG #16805: "ALTER TABLE ... ADD COLUMN IF NOT EXISTS ... PRIMARY KEY" fails if column exists and is the primary