Lp 1730726: Basic Patch to build the database with PostgreSQL 10.