* master:
Tweak replication test setup
Properly make it a func init()
The naming really matters
Fix the syntax
Properly make the replication tests skippable on 9.5 and below
I forgot the tests are 9.6+
One more try for travis
Valid YAML helps.
Dont break old postgres
Try to fix travis
Add the ability to set all the fields in the constructor
Start replication now wraps the sql and returns errors properly
It should all be unsigned.
Capitalization
Add replication stop mechanism
Add basic logical replication protocol support
This is a quick attempt to improve connection startup time by caching
the properties that are loaded when a connection is ready in the pool,
so that further connections don't incur this cost.
I'm not entirely convinced by the interface here, perhaps these 3 items
could live in their own type and that be passed around for clearer code,
but the idea works well.
Allow changing log level after connection is established. Because
log level and loggers can be set independently, it is now possible
to have a log level above none when there is a nil logger. This
means all log statements need to check for nil logger and an
appropriate log level. This check has been factored out into
*Conn.shouldLog.
Allow replacing logger after connection is established. Also
refactor internals of logging such that there is a log method that
adds the pid to all log calls instead of making a new logger object.
The reason for this is so pid will be logged regardless of whether
loggers are replaced and restored.
- Use unlisten * when releasing connection with listeners to pool
- Only unlisten on releasing connection to pool when necessary
- Remove Unlisten("") as was to release all listeners