$this->password = $password;
$connectVars = [
- // pg_connect() user $user as the default database. Since a database is required,
- // then pick a "don't care" database that is more likely to exist than that one.
+ // A database must be specified in order to connect to Postgres. If $dbName is not
+ // specified, then use the standard "postgres" database that should exist by default.
'dbname' => strlen( $dbName ) ? $dbName : 'postgres',
'user' => $user,
'password' => $password
return $row ? ( strtolower( $row->default_transaction_read_only ) === 'on' ) : false;
}
- public static function getAttributes() {
+ protected static function getAttributes() {
return [ self::ATTR_SCHEMAS_AS_TABLE_GROUPS => true ];
}