Backport PostGIS dbconsole support form 4 to 3.2