pgsql: Connects failing due to insufficient resources handled more gracefully.
pgsql: Release all locks early upon error.
pgsql: Cosmetics.
Updated C-level documentation of callbacks.
pgsql: Properly terminate the connection if the database does not exist.
Update docs.