resource pg_connect ( string $connection_string [, int $connect_type ] )
pg_connect() opens a connection to a PostgreSQL database specified by the connection_string. If a second call is made to pg_connect() with the same connection_string as an existing connection, the existing connection will be returned unless you pass PGSQL_CONNECT_FORCE_NEW as connect_type. The old syntax with multiple parameters $conn = pg_connect("host", "port", "options", "tty", "dbname") has been deprecated.
PostgreSQL connection resource on success, FALSE on failure.