Checks whether a connection to the PostgreSQL database can be established with the current configuration.
Details
This function attempts to create a database connection using the credentials
in environment variables or taskqueue_options(). It returns FALSE if
the connection fails for any reason (wrong credentials, network issues,
PostgreSQL not running, etc.).
Useful for testing database configuration before running workers or adding tasks.