MDL-55124 database: Allow option to not send options.
pgbouncer doesn't accept the PostgreSQL options command as it can't process it. If you are using pgBouncer you need to make sure your database is configured to set client encoding and standard_conforming_strings correctly on each connection. pgBouncer can do this, as can ALTER commands. Also using sockets without a filename did not allow different ports to work. This is because you either specify a filename which includes a port or you just specify a port and libpq works out the correct socket location.