Fixed DNS typo in examples
Fixed dsn and closed attributes in failing connection subclasses.

From ticket #192 discussion.
Explicit the fact that closed connections have undefined status
Dropped unneeded pass in test
Fixed overflow opening a lobject with an oid not fitting in a signed int

Fixes :ticket:`203`.
Fixed bug number typo in NEWS file
Clarify in the docs that mogrify() and query always return bytes
Work around pip issue #1630 breaking 'pip -e git+url'

https://github.com/pypa/pip/issues/1630

Fixes ticket #18 (opened in 2010!)
Fixed use of Python object with refcount 0 in cursor_init

Caused segfault running test_cursor.CursorTests.test_invalid_name under
Python 3.4 built in debug mode.
Avoid printing the typecast name in debug statement

The way we were doing it is unsafe and causes assertion failures on Py3.

Fixes ticket #188
Allow get_transaction_status on closed connections

It's a local operation and the libpq functions has a NULL guard.
Close a connection if PQexec returned NULL

This happens for Socket connections, not for TCP ones, where a result
containing an error is returned and correctly handled by pq_raise()

Closes ticket #196 but not #192: poll() still doesn't change the
connection closed.
Don't set an exception witout GIL closing lobjects with a bad conn

We ended up in this branch only for an excessively aggressive closing
of the transaction that now I'm going to fix.
Fixed attempt of closing an already closed lobject on dealloc

This results in a "null without exception set" in the corrent state, which
is caused by the connection being unexpectedly closed anyway.
Check the connection is really bad on exception before closing it

We end up here without a pgres sometimes (e.g. from lobject errors)
Close the connection if discovered bad on poll()
Don't specify 0 or 1 in closed docs

There's also 2 which means broken. But I prefer to leave that as
implementation detail.
Merge branch 'connection-closed'

NEWS for released 2.5.3 reordered.
Fixed explicit connection.cursor(cursor_factory=None)

Fixes issue #210.
set_session() params documented in a more Python-friendly way